New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 11 orientation bug #201
Comments
Same problem on device :( |
I have same problem |
Unable to reproduce using iPhone X simulator. Is this still an issue with the latest version? |
A checked again on device and it still wrong. (4.2.0 // iOS11.2.2) |
yes that is still a problem |
Can you reproduce it with https://github.com/zyra/ionic2-super-tabs-example ? If not, can you take a quick look at your app and see what's different about it that might be causing this bug? |
I've created a brand new Ionic application to demonstrate the issue. https://github.com/trytuna/ios-orientation-bug
|
Fixed. The resize method was running too soon, before iOS finished resizing the view. The issue only occurred when rotating the screen too fast. |
Unfortunately this fix isn't working that well. The behaviour I described earlier occurs less often but is still present. Is it possible to expand each slide to the full width so the width has not to be calculated? That would be a major improvement anyways. |
@trytuna tweak the I'll try to make that debounce value configurable. It's hard to get it perfect. If I make the number too high, the user experience will be poor on high performing devices, and if it's too low, it will cause problems on low performance devices... I'll probably have to find a way to check when the orientation change animation is done before recalculating the dimensions again. |
Please comment on that. Changing the debounce value isn't a fix. It is a bug that has to be fixed |
I agree with @trytuna , although increasing the debounce time works, its not a long term solution as I don't expect ppl to do npm install and then go modify the values in node_modules. Thank you for any attention to this matter. |
On iOS 11 I'm having layout issues. If I rapidly orient the device/simulator in landscape and back to portrait the
width
ofsuper-tab
changes to the deviceheight
.I dug a bit in the code and figured that there is an EventListener that listens on the window's
resize
andorientationchange
event which gets fired if the device is reoriented. While I was digging I wondered why there is so much calculation going on to determine the width ofsuper-tab
. I looked in the implementation ofion-tabs
an figured that they always let theion-tab
's expand to100%
rather than calculate the actualwidth
. Is there an actual reason for calculating thewidth
? If not this should be changed in the future.I am not sure if this is really an super-tabs or an iOS 11/WebKit bug. It would be nice if some of the more experienced
ionic2-super-tabs
developer can comment on that so I could maybe report that back to the Ionic team to work around that.The text was updated successfully, but these errors were encountered: