WebBrowser layout has whitespace at the bottom

59 views
Skip to first unread message

nickk...@gmail.com

unread,
Dec 12, 2012, 4:12:52 PM12/12/12
to codenameone...@googlegroups.com
I have a WebBrowser component that I'm using to view Google Maps.  Its set in the Center of a Border Layout but is has a white gap at the bottom (see attached).  This occurs everytime a WebBrowser is used including the built in FaceBook authentication form..

I'm not sure if its a bug or related to some settings that I have wrong?  It is only an issue for WebBrowser components, TextAreas, MapComponents and the link all fill the Center correctly.


Capture.PNG

Shai Almog

unread,
Dec 13, 2012, 1:25:39 AM12/13/12
to codenameone...@googlegroups.com, nickk...@gmail.com
Is that only in the simulator or also on the devices?
Regardless, if you have code that can reproduce this issue please file a bug. I would like to look at that.

nickk...@gmail.com

unread,
Dec 13, 2012, 2:56:37 PM12/13/12
to codenameone...@googlegroups.com, nickk...@gmail.com
On both.  I fixed it by putting it in another container so we have:

Form <- BorderLayout
   Container <- Center constraint, also BorderLayout
      WebBrowser <- Center constraint

Then it works as I'd expect and fills the space.  If I put the WebBrowser directly in the Form's Center it has the white space on the simulator and Android at least.

For FacebookAuthentication the form is generated and doesn't have this extra conatiner and DOES have the whitespace at the bottom.

Cheers,
Nick

Shai Almog

unread,
Dec 13, 2012, 2:58:09 PM12/13/12
to codenameone...@googlegroups.com, nickk...@gmail.com
Did you disable scrolling in the form?
Did you use the GUI builder/handcoding?

nickk...@gmail.com

unread,
Dec 13, 2012, 6:34:46 PM12/13/12
to codenameone...@googlegroups.com, nickk...@gmail.com
I used the GUI builder but the same issue appears in the Facebook Authentication form which is coded.

Scrolling is disabled in the form, parent container and web browser in that example with the screenshot I added.

Shai Almog

unread,
Dec 13, 2012, 11:38:00 PM12/13/12
to codenameone...@googlegroups.com, nickk...@gmail.com
I just tried the facebook login on the simulator and I don't see anything wrong there.
Can you reproduce this issue in a standalone application you can submit to us in the issue tracker?
Is there a possibility this might relate to a theme setting?

nickk...@gmail.com

unread,
Dec 19, 2012, 7:14:06 PM12/19/12
to codenameone...@googlegroups.com, nickk...@gmail.com
Further investigation shows it only happens on Android.  Its fine on iOS and in the simulator.

Basically the WebBrowser component has this padding white padding on the bottom if its put in a form or in the built in Facebook access form.

Will check the demos to see if there is a suitable example or put together a minimum app for it.
Reply all
Reply to author
Forward
0 new messages