mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
21 lines
552 B
TypeScript
21 lines
552 B
TypeScript
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
|
|
|
|
export * from "./layout-base-common";
|
|
|
|
export class LayoutBase extends LayoutBaseCommon {
|
|
|
|
get [clipToBoundsProperty.native](): boolean {
|
|
return false;
|
|
}
|
|
set [clipToBoundsProperty.native](value: boolean) {
|
|
this._setNativeClipToBounds();
|
|
}
|
|
|
|
_setNativeClipToBounds() {
|
|
if (this.clipToBounds) {
|
|
this._nativeView.clipsToBounds = true;
|
|
} else {
|
|
super._setNativeClipToBounds();
|
|
}
|
|
}
|
|
} |