mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
UIScrollViews will now report 'scroll' events and the background in ios will adjust added layers (#4762)
This commit is contained in:
committed by
SvetoslavTsenov
parent
3fd65cce9f
commit
12c0199fb5
@@ -437,7 +437,10 @@ export class View extends ViewCommon {
|
||||
|
||||
_setNativeClipToBounds() {
|
||||
let backgroundInternal = this.style.backgroundInternal;
|
||||
this.nativeViewProtected.clipsToBounds = backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius();
|
||||
this.nativeViewProtected.clipsToBounds =
|
||||
this.nativeViewProtected instanceof UIScrollView ||
|
||||
backgroundInternal.hasBorderWidth() ||
|
||||
backgroundInternal.hasBorderRadius();
|
||||
}
|
||||
}
|
||||
View.prototype._nativeBackgroundState = "unset";
|
||||
|
||||
Reference in New Issue
Block a user