webview positioning problem

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I have an activity with a panel stretched to the entire width at the bottom of the screen

B4X:
pnlButtons.Bottom = 100%y
pnlButtons.Width = 100%x

I added a webview above this panel, with:

B4X:
wvMessages.Width = 100%x
wvMessages.Bottom = pnlButtons.Top

The vwMessages as Top and Left = 0

If I run this app on my tablet the webview is only show on the bottom half of my screen ?

What am I doing wrong ?

Thanks !
 

wl

Well-Known Member
Licensed User
Longtime User
Edit:

If I use this:

B4X:
wvMessages.SetTopAndBottom(0, pnlButtons.Top)
wvMessages.SetLeftAndRight(0, 100%x)

it seems to work. What is the difference ?
Thanks !
 
Upvote 0

wl

Well-Known Member
Licensed User
Longtime User
Thanks Erel,

I think you answered my question by saying the height is not changed.

Thanks !
 
Upvote 0
Top