John Decowski Member Licensed User Longtime User Feb 26, 2015 #1 I used 100%y in b4a to get screen height. if I use it in b4i I get a value of 42.0 ?? I tried 100%x and got a value of 434 so I know something is skewed. I'm using iPhone 6plus. Is there another way to get total screen height? thanks , john
I used 100%y in b4a to get screen height. if I use it in b4i I get a value of 42.0 ?? I tried 100%x and got a value of 434 so I know something is skewed. I'm using iPhone 6plus. Is there another way to get total screen height? thanks , john
klaus Expert Licensed User Longtime User Feb 26, 2015 #2 Where do you use it ? The current screen size is known in the Page1_Resize routine not in Application_Start. Upvote 0
Where do you use it ? The current screen size is known in the Page1_Resize routine not in Application_Start.
John Decowski Member Licensed User Longtime User Feb 26, 2015 #3 i kind of use it everywhere. I found a weird work around of resizing an image in designer script and then using the image height in my code. and then using math to figure out percent that works. its definitely a bug. designer script 100%y works fine. Upvote 0
i kind of use it everywhere. I found a weird work around of resizing an image in designer script and then using the image height in my code. and then using math to figure out percent that works. its definitely a bug. designer script 100%y works fine.
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2015 #4 100%x and 100%y are only guaranteed to be correct inside Page_Resize event. Upvote 0