merlin2049er Well-Known Member Licensed User Longtime User Sep 23, 2015 #1 I've got a webview and a couple of buttons within a panel B4X: Panel4.SetLeftAndRight(0,100%x) Panel4.SetTopAndBottom(0,100%y) ButtonUpdate.SetLeftAndRight(0,50%x) Buttonsubscribe.SetLeftAndRight(50%x,100%x) WebViewmap.SetLeftAndRight(0,100%y) WebViewmap.SetTopAndBottom(50dip,100%y) How do I reference the webview to fit within the panel, the webpage loads, but it's offscreen a bit?
I've got a webview and a couple of buttons within a panel B4X: Panel4.SetLeftAndRight(0,100%x) Panel4.SetTopAndBottom(0,100%y) ButtonUpdate.SetLeftAndRight(0,50%x) Buttonsubscribe.SetLeftAndRight(50%x,100%x) WebViewmap.SetLeftAndRight(0,100%y) WebViewmap.SetTopAndBottom(50dip,100%y) How do I reference the webview to fit within the panel, the webpage loads, but it's offscreen a bit?
merlin2049er Well-Known Member Licensed User Longtime User Sep 23, 2015 #2 Or does the website need to recognize that the device is mobile? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2015 #3 You don't need any script for this. Put the WebView in the panel and set its anchors to BOTH. Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Sep 24, 2015 #4 Ok, I thought I tried that. Upvote 0