Skip to content

Commit 1562b07

Browse files
authored
Merge branch 'master' into border-outline
2 parents b376e62 + 2d63c9f commit 1562b07

File tree

6 files changed

+32
-13
lines changed

6 files changed

+32
-13
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [5.3.1](https://github.com/NativeScript/NativeScript/compare/5.3.0...5.3.1) (2019-03-28)
2+
3+
4+
### Bug Fixes
5+
6+
* revert fromUrl deprecate warning ([#7082](https://github.com/NativeScript/NativeScript/issues/7082)) ([0a45540](https://github.com/NativeScript/NativeScript/commit/0a45540))
7+
8+
19
<a name="5.3.0"></a>
210
# [5.3.0](https://github.com/NativeScript/NativeScript/compare/5.2.1...5.3.0) (2019-03-21)
311

tns-core-modules/image-source/image-source.android.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ export function fromNativeSource(source: any): ImageSource {
246246
}
247247

248248
export function fromUrl(url: string): Promise<ImageSourceDefinition> {
249-
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
250-
251249
ensureHttp();
252250
return http.getImage(url);
253251
}

tns-core-modules/image-source/image-source.ios.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ export function fromNativeSource(source: any): ImageSource {
237237
}
238238

239239
export function fromUrl(url: string): Promise<ImageSource> {
240-
console.log("imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead");
241-
242240
ensureHttp();
243241
return http.getImage(url);
244242
}

tns-core-modules/ui/core/view/view.ios.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,14 @@ export namespace ios {
904904
return controller;
905905
}
906906

907+
public viewDidLoad(): void {
908+
super.viewDidLoad();
909+
910+
// Unify translucent and opaque bars layout
911+
// this.edgesForExtendedLayout = UIRectEdgeBottom;
912+
this.extendedLayoutIncludesOpaqueBars = true;
913+
}
914+
907915
public viewWillLayoutSubviews(): void {
908916
super.viewWillLayoutSubviews();
909917
const owner = this.owner.get();
@@ -959,9 +967,6 @@ export namespace ios {
959967
return;
960968
}
961969

962-
// Unify translucent and opaque bars layout
963-
this.extendedLayoutIncludesOpaqueBars = true;
964-
965970
updateAutoAdjustScrollInsets(this, owner);
966971

967972
if (!owner.parent) {

tns-core-modules/ui/page/page.ios.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ class UIViewControllerImpl extends UIViewController {
6868
return controller;
6969
}
7070

71+
public viewDidLoad(): void {
72+
super.viewDidLoad();
73+
74+
// Unify translucent and opaque bars layout
75+
// this.edgesForExtendedLayout = UIRectEdgeBottom;
76+
this.extendedLayoutIncludesOpaqueBars = true;
77+
}
78+
7179
public viewWillAppear(animated: boolean): void {
7280
super.viewWillAppear(animated);
7381
const owner = this._owner.get();
@@ -100,9 +108,6 @@ class UIViewControllerImpl extends UIViewController {
100108
frame._updateActionBar(owner);
101109
}
102110

103-
// Unify translucent and opaque bars layout
104-
this.extendedLayoutIncludesOpaqueBars = true;
105-
106111
// Set autoAdjustScrollInsets in will appear - as early as possible
107112
iosView.updateAutoAdjustScrollInsets(this, owner);
108113

tns-core-modules/ui/tab-view/tab-view.ios.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ class UITabBarControllerImpl extends UITabBarController {
2828
return handler;
2929
}
3030

31+
public viewDidLoad(): void {
32+
super.viewDidLoad();
33+
34+
// Unify translucent and opaque bars layout
35+
// this.edgesForExtendedLayout = UIRectEdgeBottom;
36+
this.extendedLayoutIncludesOpaqueBars = true;
37+
}
38+
3139
@profile
3240
public viewWillAppear(animated: boolean): void {
3341
super.viewWillAppear(animated);
@@ -36,9 +44,6 @@ class UITabBarControllerImpl extends UITabBarController {
3644
return;
3745
}
3846

39-
// Unify translucent and opaque bars layout
40-
this.extendedLayoutIncludesOpaqueBars = true;
41-
4247
iosView.updateAutoAdjustScrollInsets(this, owner);
4348

4449
if (!owner.parent) {

0 commit comments

Comments
 (0)