mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Merge branch 'master' into border-outline
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
## [5.3.1](https://github.com/NativeScript/NativeScript/compare/5.3.0...5.3.1) (2019-03-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* revert fromUrl deprecate warning ([#7082](https://github.com/NativeScript/NativeScript/issues/7082)) ([0a45540](https://github.com/NativeScript/NativeScript/commit/0a45540))
|
||||||
|
|
||||||
|
|
||||||
<a name="5.3.0"></a>
|
<a name="5.3.0"></a>
|
||||||
# [5.3.0](https://github.com/NativeScript/NativeScript/compare/5.2.1...5.3.0) (2019-03-21)
|
# [5.3.0](https://github.com/NativeScript/NativeScript/compare/5.2.1...5.3.0) (2019-03-21)
|
||||||
|
|
||||||
|
@ -246,8 +246,6 @@ export function fromNativeSource(source: any): ImageSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function fromUrl(url: string): Promise<ImageSourceDefinition> {
|
export function fromUrl(url: string): Promise<ImageSourceDefinition> {
|
||||||
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
|
|
||||||
|
|
||||||
ensureHttp();
|
ensureHttp();
|
||||||
return http.getImage(url);
|
return http.getImage(url);
|
||||||
}
|
}
|
||||||
|
@ -237,8 +237,6 @@ export function fromNativeSource(source: any): ImageSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function fromUrl(url: string): Promise<ImageSource> {
|
export function fromUrl(url: string): Promise<ImageSource> {
|
||||||
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
|
|
||||||
|
|
||||||
ensureHttp();
|
ensureHttp();
|
||||||
return http.getImage(url);
|
return http.getImage(url);
|
||||||
}
|
}
|
||||||
|
@ -904,6 +904,14 @@ export namespace ios {
|
|||||||
return controller;
|
return controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public viewDidLoad(): void {
|
||||||
|
super.viewDidLoad();
|
||||||
|
|
||||||
|
// Unify translucent and opaque bars layout
|
||||||
|
// this.edgesForExtendedLayout = UIRectEdgeBottom;
|
||||||
|
this.extendedLayoutIncludesOpaqueBars = true;
|
||||||
|
}
|
||||||
|
|
||||||
public viewWillLayoutSubviews(): void {
|
public viewWillLayoutSubviews(): void {
|
||||||
super.viewWillLayoutSubviews();
|
super.viewWillLayoutSubviews();
|
||||||
const owner = this.owner.get();
|
const owner = this.owner.get();
|
||||||
@ -959,9 +967,6 @@ export namespace ios {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unify translucent and opaque bars layout
|
|
||||||
this.extendedLayoutIncludesOpaqueBars = true;
|
|
||||||
|
|
||||||
updateAutoAdjustScrollInsets(this, owner);
|
updateAutoAdjustScrollInsets(this, owner);
|
||||||
|
|
||||||
if (!owner.parent) {
|
if (!owner.parent) {
|
||||||
|
@ -68,6 +68,14 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
return controller;
|
return controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public viewDidLoad(): void {
|
||||||
|
super.viewDidLoad();
|
||||||
|
|
||||||
|
// Unify translucent and opaque bars layout
|
||||||
|
// this.edgesForExtendedLayout = UIRectEdgeBottom;
|
||||||
|
this.extendedLayoutIncludesOpaqueBars = true;
|
||||||
|
}
|
||||||
|
|
||||||
public viewWillAppear(animated: boolean): void {
|
public viewWillAppear(animated: boolean): void {
|
||||||
super.viewWillAppear(animated);
|
super.viewWillAppear(animated);
|
||||||
const owner = this._owner.get();
|
const owner = this._owner.get();
|
||||||
@ -100,9 +108,6 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
frame._updateActionBar(owner);
|
frame._updateActionBar(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unify translucent and opaque bars layout
|
|
||||||
this.extendedLayoutIncludesOpaqueBars = true;
|
|
||||||
|
|
||||||
// Set autoAdjustScrollInsets in will appear - as early as possible
|
// Set autoAdjustScrollInsets in will appear - as early as possible
|
||||||
iosView.updateAutoAdjustScrollInsets(this, owner);
|
iosView.updateAutoAdjustScrollInsets(this, owner);
|
||||||
|
|
||||||
|
@ -28,6 +28,14 @@ class UITabBarControllerImpl extends UITabBarController {
|
|||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public viewDidLoad(): void {
|
||||||
|
super.viewDidLoad();
|
||||||
|
|
||||||
|
// Unify translucent and opaque bars layout
|
||||||
|
// this.edgesForExtendedLayout = UIRectEdgeBottom;
|
||||||
|
this.extendedLayoutIncludesOpaqueBars = true;
|
||||||
|
}
|
||||||
|
|
||||||
@profile
|
@profile
|
||||||
public viewWillAppear(animated: boolean): void {
|
public viewWillAppear(animated: boolean): void {
|
||||||
super.viewWillAppear(animated);
|
super.viewWillAppear(animated);
|
||||||
@ -36,9 +44,6 @@ class UITabBarControllerImpl extends UITabBarController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unify translucent and opaque bars layout
|
|
||||||
this.extendedLayoutIncludesOpaqueBars = true;
|
|
||||||
|
|
||||||
iosView.updateAutoAdjustScrollInsets(this, owner);
|
iosView.updateAutoAdjustScrollInsets(this, owner);
|
||||||
|
|
||||||
if (!owner.parent) {
|
if (!owner.parent) {
|
||||||
|
Reference in New Issue
Block a user