diff --git a/apps/app/ui-tests-app/css/text-view-border.xml b/apps/app/ui-tests-app/css/text-view-border.xml
index d32dc55ac..9f17b0bd1 100644
--- a/apps/app/ui-tests-app/css/text-view-border.xml
+++ b/apps/app/ui-tests-app/css/text-view-border.xml
@@ -1,22 +1,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tns-core-modules/ui/image/image.ios.ts b/tns-core-modules/ui/image/image.ios.ts
index 2642ab2ab..73cbf945a 100644
--- a/tns-core-modules/ui/image/image.ios.ts
+++ b/tns-core-modules/ui/image/image.ios.ts
@@ -16,8 +16,8 @@ export class Image extends ImageBase {
//TODO: Think of unified way of setting all the default values.
this._ios = UIImageView.new();
this._ios.contentMode = UIViewContentMode.ScaleAspectFit;
- this._ios.clipsToBounds = true;
this._ios.userInteractionEnabled = true;
+ this._setNativeClipToBounds();
}
get ios(): UIImageView {
@@ -45,6 +45,11 @@ export class Image extends ImageBase {
}
}
+ _setNativeClipToBounds() {
+ // Always set clipsToBounds for images
+ this._ios.clipsToBounds = true;
+ }
+
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
// We don't call super because we measure native view with specific size.
let width = layout.getMeasureSpecSize(widthMeasureSpec);
diff --git a/tns-core-modules/ui/list-view/list-view.ios.ts b/tns-core-modules/ui/list-view/list-view.ios.ts
index a911dc155..8df0c29e7 100644
--- a/tns-core-modules/ui/list-view/list-view.ios.ts
+++ b/tns-core-modules/ui/list-view/list-view.ios.ts
@@ -217,6 +217,12 @@ export class ListView extends ListViewBase {
this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this));
this._heights = new Array();
this._map = new Map();
+ this._setNativeClipToBounds();
+ }
+
+ _setNativeClipToBounds() {
+ // Always set clipsToBounds for list-view
+ this._ios.clipsToBounds = true;
}
public onLoaded() {
diff --git a/tns-core-modules/ui/scroll-view/scroll-view.ios.ts b/tns-core-modules/ui/scroll-view/scroll-view.ios.ts
index e4e3a8a51..e744f9f40 100644
--- a/tns-core-modules/ui/scroll-view/scroll-view.ios.ts
+++ b/tns-core-modules/ui/scroll-view/scroll-view.ios.ts
@@ -36,6 +36,12 @@ export class ScrollView extends ScrollViewBase {
constructor() {
super();
this.nativeView = UIScrollView.new();
+ this._setNativeClipToBounds();
+ }
+
+ _setNativeClipToBounds() {
+ // Always set clipsToBounds for scroll-view
+ this.nativeView.clipsToBounds = true;
}
protected attachNative() {