File tree Expand file tree Collapse file tree 6 files changed +32
-13
lines changed Expand file tree Collapse file tree 6 files changed +32
-13
lines changed Original file line number Diff line number Diff line change
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
+
1
9
<a name =" 5.3.0 " ></a >
2
10
# [ 5.3.0] ( https://github.com/NativeScript/NativeScript/compare/5.2.1...5.3.0 ) (2019-03-21)
3
11
Original file line number Diff line number Diff line change @@ -246,8 +246,6 @@ export function fromNativeSource(source: any): ImageSource {
246
246
}
247
247
248
248
export function fromUrl ( url : string ) : Promise < ImageSourceDefinition > {
249
- console . log ( "imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead" ) ;
250
-
251
249
ensureHttp ( ) ;
252
250
return http . getImage ( url ) ;
253
251
}
Original file line number Diff line number Diff line change @@ -237,8 +237,6 @@ export function fromNativeSource(source: any): ImageSource {
237
237
}
238
238
239
239
export function fromUrl ( url : string ) : Promise < ImageSource > {
240
- console . log ( "imageSource.fromUrl(url) is deprecated; use http.getImage(url) instead" ) ;
241
-
242
240
ensureHttp ( ) ;
243
241
return http . getImage ( url ) ;
244
242
}
Original file line number Diff line number Diff line change @@ -904,6 +904,14 @@ export namespace ios {
904
904
return controller ;
905
905
}
906
906
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
+
907
915
public viewWillLayoutSubviews ( ) : void {
908
916
super . viewWillLayoutSubviews ( ) ;
909
917
const owner = this . owner . get ( ) ;
@@ -959,9 +967,6 @@ export namespace ios {
959
967
return ;
960
968
}
961
969
962
- // Unify translucent and opaque bars layout
963
- this . extendedLayoutIncludesOpaqueBars = true ;
964
-
965
970
updateAutoAdjustScrollInsets ( this , owner ) ;
966
971
967
972
if ( ! owner . parent ) {
Original file line number Diff line number Diff line change @@ -68,6 +68,14 @@ class UIViewControllerImpl extends UIViewController {
68
68
return controller ;
69
69
}
70
70
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
+
71
79
public viewWillAppear ( animated : boolean ) : void {
72
80
super . viewWillAppear ( animated ) ;
73
81
const owner = this . _owner . get ( ) ;
@@ -100,9 +108,6 @@ class UIViewControllerImpl extends UIViewController {
100
108
frame . _updateActionBar ( owner ) ;
101
109
}
102
110
103
- // Unify translucent and opaque bars layout
104
- this . extendedLayoutIncludesOpaqueBars = true ;
105
-
106
111
// Set autoAdjustScrollInsets in will appear - as early as possible
107
112
iosView . updateAutoAdjustScrollInsets ( this , owner ) ;
108
113
Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ class UITabBarControllerImpl extends UITabBarController {
28
28
return handler ;
29
29
}
30
30
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
+
31
39
@profile
32
40
public viewWillAppear ( animated : boolean ) : void {
33
41
super . viewWillAppear ( animated ) ;
@@ -36,9 +44,6 @@ class UITabBarControllerImpl extends UITabBarController {
36
44
return ;
37
45
}
38
46
39
- // Unify translucent and opaque bars layout
40
- this . extendedLayoutIncludesOpaqueBars = true ;
41
-
42
47
iosView . updateAutoAdjustScrollInsets ( this , owner ) ;
43
48
44
49
if ( ! owner . parent ) {
You can’t perform that action at this time.
0 commit comments