J joop Active Member Licensed User Longtime User Nov 18, 2015 #1 I am converting a B4A to B4i it's going well but i noticed something,when I turn my iphone 5 every time the webview view becomes smaller,when i out command autoscaleAll its ok. So I tested it with a simple test a webview and a button ,it seems the first time ,one pixel is missing right ,so when turn 2 pixels and so one. Can someone explain me the theory for this behaviour.? See the picture. The designer code : Code: 'All variants script AutoScaleAll 'uncomment to scale all views based on the device physical size. WebView1.SetLeftAndRight(0, 100%x) WebView1.SetTopAndBottom(0, 100%y) 320 x 568 screen is used scale 1 160dpi ,handle resize event is checked. Attachments screen iphone_5s.jpg 359 KB · Views: 746
I am converting a B4A to B4i it's going well but i noticed something,when I turn my iphone 5 every time the webview view becomes smaller,when i out command autoscaleAll its ok. So I tested it with a simple test a webview and a button ,it seems the first time ,one pixel is missing right ,so when turn 2 pixels and so one. Can someone explain me the theory for this behaviour.? See the picture. The designer code : Code: 'All variants script AutoScaleAll 'uncomment to scale all views based on the device physical size. WebView1.SetLeftAndRight(0, 100%x) WebView1.SetTopAndBottom(0, 100%y) 320 x 568 screen is used scale 1 160dpi ,handle resize event is checked.
J joop Active Member Licensed User Longtime User Nov 18, 2015 #2 forgot file Attachments orient_test.zip orient_test.zip 3.5 KB · Views: 573 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2015 #3 It looks like a rounding error. Set the vertical and horizontal anchors to BOTH instead of these two lines. It is simpler and it will work properly. Upvote 0
It looks like a rounding error. Set the vertical and horizontal anchors to BOTH instead of these two lines. It is simpler and it will work properly.
J joop Active Member Licensed User Longtime User Nov 18, 2015 #4 Thanks Erel , it's better now . Upvote 0