So this appears not to be an Elm question, but if anyone has any insights, I’d be grateful for some of your knowledge. Strange that they all report back the correct width, but different heights. Safari reports window.innerWidth = 375, window.innerHeight = 553 I’ve just tested with an empty view, and when rotating from landscape to portrait the aforementioned failing browsers still report the wrong dimensions.Ĭhrome reports that the view size is window.innerWidth = 375, window.innerHeight = 319įirefox reports window.innerWidth = 375, window.innerHeight = 321Įdge reports window.innerWidth = 375, window.innerHeight = 281īrave reports window.innerWidth = 375, window.innerHeight = 530 The browsers that are OK are: Safari & BraveĬould this be elm-ui causing those browsers to report back the wrong size? I’ve checked the issues but can’t see that it has been reported if it is an issue with elm-ui. The browsers that fail are: Firefox, Chrome & Edge The device is an iPhone 7, and the browser versions are the latest available from the app store. So today I tested a current project in different browsers on iOS, and some are reporting the wrong window size when rotating from landscape to portrait - if I load the app initially in portrait mode it displays fine, and then rotating from portrait to landscape is also fine, but the browsers that fail all fail to detect the correct portrait size when rotating from landscape to portrait, and simply return the previous landscape size - which completely breaks the repsonisve design. I’m not sure if this is a bug in elm-ui or certain browsers on iOS, but as elm-ui is so popular, I was if others may have encountered this… (unless I’m the only one )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |