[TIMOB-25637] iOS: Window toolbar animates when opening window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-01-17T16:47:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.2 |
Components | iOS |
Labels | IOS, Sliding, Toolbar, Window, iPhoneX, merge-7.0.2 |
Reporter | Thomas Neerup |
Assignee | Vijay Singh |
Created | 2017-11-13T11:40:13.000+0000 |
Updated | 2018-01-24T23:05:23.000+0000 |
Description
When opening Windows in a NavigationWindow the toolbar on The window is animated sliding in from the bottom. Event the first window in the NavigationWindow slides in. Toolbars should not slide in when opening windows. When doing the same in Mail the toolbar does not slide in from the button, it just follows the window.
Am I missing something? Is there some way to avoid all this sliding in?
I have added a test case showing the sliding in of toolbars :)
Thanks
Attachments
File | Date | Size |
---|---|---|
iPhoneToolbarTest2.zip | 2017-11-13T11:33:31.000+0000 | 8648644 |
Screen Shot 2017-11-14 at 07.01.54.png | 2017-11-14T06:02:13.000+0000 | 28829 |
Hello, I tested your sample app. I am not sure what seems to be the issue here! Opening window is sliding from the right to left for me and toolbar at the bottom also slides from the right to left. What seems to be the issue here? Please elaborate. Thanks.
Hi Sharif.. I'm sorry it seems like it only happens on iPhone X I have added a screenshot ...
We don't reposition the toolbar manually, so this might either be a Simulator- or iOS-bug. Did you get in touch with Apple to report this issue so far? We reported quite a few tickets to them so far, with success (like with TIMOB-25269). Let us know, thanks!
Hello [~thomas.neerup@eg.dk], As Hans mentioned this might be iOS-bug. Did you try to get in touch with them?
Hi Sharif.. No I did not contact Apple. I would rather not be the man in the middle when I have no clue to how Appcelerator uses the native api's.
[~thomas.neerup@eg.dk], Thanks for your feedback. Hyperloop gives you direct access to the native APIs. Please follow the [link](https://docs.appcelerator.com/platform/latest/#!/guide/Hyperloop). Hope this helps. Best
[~thomas.neerup@eg.dk] No worries, we are taking care of it! I'll try to reproduce it on a native project and file an issue with Apple if it also occurs there.
Moving to TIMOB for closer investigation and comparison with native projects.
[~thomas.neerup@eg.dk] Can you update index.xml and window.xml with following code and see if this solves your problem - index.xml -
window.xml -
You can see doc http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Toolbar. Thanks!
PR : https://github.com/appcelerator/titanium_mobile/pull/9698 Test Case -
Hi Vijay Singh I have tried using the Toolbar instead of the WindowToolbar, and it semi works, the toolbar does not animate but I do not get the native look of the toolbar being extra tall on the iPhoneX.
[~thomas.neerup@eg.dk] I did the code-review for this ticket and tested it. Let me share a video I've just made that looked fine to me (iPhone X based): https://www.dropbox.com/s/n6haj1x8jfpn5va/iphone-x-toolbar.mov?dl=0
Hi Hans... The video shows the bug perfectly... The menu animates from the bottom up at the same time slides in from the side... That is not the intended animation... It should only slide in from the side... Like in the mail Mail app. when opening a mail . .
Hey Thomas! I was on the wrong branch / wrong video. It seems fine here: https://www.dropbox.com/s/i7tc74w35bqfkpg/iphone-x-toolbar-2.mov?dl=0 How did you patch your local source? The PR is not merged so far, so unless you patched it manually in
~/Library/Application Support
, you either need to do that or wait for the 7.1.0 release.Hi Hans... I'll take your word for it... I'll wait for 7.1.0
I'd love to see if it works for you already. Basically, go to:
remove line 945:
and re-insert it after
[~vijaysingh] Please back port to 7.0.2. Thanks!
PR (7_0_X) : https://github.com/appcelerator/titanium_mobile/pull/9713
Passed FR.
Verified fix is found in: SDK 7.0.2.v20180124113923 SDK 7.1.0.v20180124115505