Fix: Modal dialogs don't have background color

Resolves #3129
This commit is contained in:
Rossen Hristov
2016-11-21 14:07:46 +02:00
parent 538c88cc82
commit 91083a4ea4
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" shownModally="onShownModally" loaded="onLoaded" unloaded="onUnloaded" backgroundColor="Red">
<StackLayout backgroundColor="PaleGreen">
<StackLayout backgroundColor="PaleGreen" margin="10">
<TextField hint="username" id="username" text="username"/>
<TextField hint="password" id="password" text="password" secure="true"/>
<Button text="Login" tap="onLoginButtonTap"/>

View File

@ -161,6 +161,7 @@ export class Page extends pageCommon.Page {
this._onAttached(parent._context);
this._isAddedToNativeVisualTree = true;
this._syncNativeProperties();
ensureDialogFragmentClass();