B4J Question [ABMaterial] iOS 10 ABM.GetBrowserWidthHeight() = 0;0

alwaysbusy

Expert
Licensed User
Longtime User
If that is true, support for Safari in iOS 10 is going to stop for ABMaterial, and thousands of other frameworks. This must be a bug. Every framework uses window.outerWidth somewhere and I can (will) not make the changes in the dozens of js libraries because of one idiots decision. :mad:
 
Upvote 0

stanmiller

Active Member
Licensed User
Longtime User
I feel your pain.

The iPad2 I spoke about in post #1 is actually running iOS 9.3.5.

I also have an iPhone5 with 10.2.1. But like the iPad it reports window.outerWidth=0.

I found this tool which compares methods for retrieving the client width live.

Device and Viewport Size in JavaScript
http://ryanve.com/lab/dimensions/

Here's the output for the iPhone5

1_iphone5_browser_width_zpsscuqyrvj.jpg
 
Last edited:
Upvote 0
Top