mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Merge pull request #1939 from NativeScript/show-modal-ios7
Modal pages fixed for iOS7
This commit is contained in:
@ -345,11 +345,16 @@ export class Page extends pageCommon.Page {
|
|||||||
|
|
||||||
super._raiseShowingModallyEvent();
|
super._raiseShowingModallyEvent();
|
||||||
|
|
||||||
var that = this;
|
|
||||||
parent.ios.presentViewControllerAnimatedCompletion(this._ios, utils.ios.MajorVersion >= 8, null);
|
parent.ios.presentViewControllerAnimatedCompletion(this._ios, utils.ios.MajorVersion >= 8, null);
|
||||||
UIViewControllerTransitionCoordinator.prototype.animateAlongsideTransitionCompletion.call(parent.ios.transitionCoordinator(), null, function () {
|
|
||||||
|
if (utils.ios.MajorVersion >= 8) {
|
||||||
|
var that = this;
|
||||||
|
UIViewControllerTransitionCoordinator.prototype.animateAlongsideTransitionCompletion.call(parent.ios.transitionCoordinator(), null, function() {
|
||||||
that._raiseShownModallyEvent();
|
that._raiseShownModallyEvent();
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this._raiseShownModallyEvent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _hideNativeModalView(parent: Page) {
|
protected _hideNativeModalView(parent: Page) {
|
||||||
|
Reference in New Issue
Block a user