mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: android modal not following activity windowSoftInputMode (#9042)
* fix android modal not following activity windowSoftInputMode Also added an android modal parameter to set a custom windowSoftInputMode * fix softInputMode set too soon * Update packages/core/ui/core/view/index.android.ts Co-authored-by: Igor Randjelovic <rigor789@gmail.com> * Update packages/core/ui/core/view-base/index.d.ts Co-authored-by: Igor Randjelovic <rigor789@gmail.com> * Update packages/core/ui/core/view-base/index.ts Co-authored-by: Igor Randjelovic <rigor789@gmail.com> Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
This commit is contained in:
5
packages/core/ui/core/view-base/index.d.ts
vendored
5
packages/core/ui/core/view-base/index.d.ts
vendored
@@ -83,6 +83,11 @@ export interface ShowModalOptions {
|
||||
* An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode.
|
||||
*/
|
||||
cancelable?: boolean;
|
||||
/**
|
||||
* An optional parameter specifying the windowSoftInputMode of the dialog window
|
||||
* For possible values see https://developer.android.com/reference/android/view/WindowManager.LayoutParams#softInputMode
|
||||
*/
|
||||
windowSoftInputMode?: number;
|
||||
};
|
||||
/**
|
||||
* An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode.
|
||||
|
||||
@@ -87,6 +87,12 @@ export interface ShowModalOptions {
|
||||
* An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode.
|
||||
*/
|
||||
cancelable?: boolean;
|
||||
|
||||
/**
|
||||
* An optional parameter specifying the windowSoftInputMode of the dialog window.
|
||||
* For possible values see https://developer.android.com/reference/android/view/WindowManager.LayoutParams#softInputMode
|
||||
*/
|
||||
windowSoftInputMode?: number;
|
||||
};
|
||||
/**
|
||||
* An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode.
|
||||
|
||||
Reference in New Issue
Block a user