mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #3132 from NativeScript/issue-3129
Fix: Modal dialogs don't have background color
This commit is contained in:
@@ -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"/>
|
||||
|
||||
@@ -161,6 +161,7 @@ export class Page extends pageCommon.Page {
|
||||
|
||||
this._onAttached(parent._context);
|
||||
this._isAddedToNativeVisualTree = true;
|
||||
this._syncNativeProperties();
|
||||
|
||||
ensureDialogFragmentClass();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user