W wl Well-Known Member Licensed User Longtime User May 19, 2012 #1 Hello, I have an activity with a panel stretched to the entire width at the bottom of the screen Code: Copy pnlButtons.Bottom = 100%y pnlButtons.Width = 100%x I added a webview above this panel, with: Code: Copy 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 !
Hello, I have an activity with a panel stretched to the entire width at the bottom of the screen Code: Copy pnlButtons.Bottom = 100%y pnlButtons.Width = 100%x I added a webview above this panel, with: Code: Copy 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 !
W wl Well-Known Member Licensed User Longtime User May 19, 2012 #2 Edit: If I use this: Code: Copy wvMessages.SetTopAndBottom(0, pnlButtons.Top) wvMessages.SetLeftAndRight(0, 100%x) it seems to work. What is the difference ? Thanks ! Upvote 0
Edit: If I use this: Code: Copy wvMessages.SetTopAndBottom(0, pnlButtons.Top) wvMessages.SetLeftAndRight(0, 100%x) it seems to work. What is the difference ? Thanks !
Erel B4X founder Staff member Licensed User Longtime User May 20, 2012 #3 Note that it is usually recommended to upload the layout file together with the question. Calling: wvMessages.Bottom = pnlButtons.Top doesn't change the view's height value. Similar to other position properties (Left, Top and Right) it only moves the view. Upvote 0
Note that it is usually recommended to upload the layout file together with the question. Calling: wvMessages.Bottom = pnlButtons.Top doesn't change the view's height value. Similar to other position properties (Left, Top and Right) it only moves the view.
W wl Well-Known Member Licensed User Longtime User May 20, 2012 #4 Thanks Erel, I think you answered my question by saying the height is not changed. Thanks ! Upvote 0