5. When you pull up the keyboard on ios it covers most of a dialog; I do believe the proper behavior is for the screen to scroll up so the fields are in focus and visible. At least it behaves properly on Android. #782
On iOS, the fullScreen=false mode is available only on iPads. iPhones ignore fullScreen=false and show the dialog on the entire screen since their displays are small and there is nothing we can do to force Apple change this.
@hamorphis the thing is if you manually set the height on the Layout; then the dialog does NOT take up the whole screen on iOS. Which is why I say the layout engine is wrongly calculating the height on iOS also.
That is normal. When you set the height of the Layout, it becomes as high as you want. Its parent, which you don't see takes up the whole screen.
I confirm issue 1. that in v.1.3.0 page.showModal shows a title bar on Android, but it should not. Also I confirm with reference to issue 4. that in v.1.3.0 fullScreen=false: does not work properly on Android, works as expected on iPads and is not expected to work on iPhones as @hamorphis explained.
On 1 you an use actionBarHidden="true" in the page definition to hide it. So I assume this should be set to default to false on a modal.
I would love to see consistency on 2, so that 3 isn't required.
Since the code on iOS won't change for 4. I added to my #726 patch, the fix for Android and being full screen, so once it is accepted and merged I'll strike out 4.
And 5 probably should be moved to its own bug; it affects everything not just modal screens. see #782
@NathanaelA I've fixed all issues so now it should be consistent.
Closing this issue for now. Open it if there is something I have missed.
Workaround for 1.
I created a toolbar plugin for other things but I was able to extend it to mimic a navigation bar on iOS https://github.com/rajivnarayana/nativescript-toolbar#modal-screens. Has xml just like an action bar with support for tap events on items as well.
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:tools="nativescript-toolbar">
<DockLayout stretchLastChild="false">
<tools:ToolBar dock="top" barPosition="3">
<tools.ToolBar.barItems>
<tools:ToolBarItem text="Done" tap="onDoneButtonTapped" />
</tools.ToolBar.barItems>
</tools:ToolBar>
</DockLayout>
</Page>
Add style="margin-bottom:0.5" attribute to allow the line below the toolbar to be not cut off when you have other elements like list-view below it.
Is there a possibility to show the ActionBar on a modal view?
@rajivnarayana linked a nice workaround for ios but I need the ActionBar or NavigationBaron both platforms...
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Is there a possibility to show the
ActionBaron a modal view?@rajivnarayana linked a nice workaround for ios but I need the
ActionBarorNavigationBaron both platforms...