mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
5
ui/layouts/layout-base.d.ts
vendored
5
ui/layouts/layout-base.d.ts
vendored
@@ -104,5 +104,10 @@
|
||||
* Specify the top padding of this layout.
|
||||
*/
|
||||
paddingTop: number;
|
||||
|
||||
/**
|
||||
* Gets or sets a value indicating whether to clip the content of this layout.
|
||||
*/
|
||||
clipToBounds: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,6 +111,13 @@ export class LayoutBase extends view.CustomLayoutView implements definition.Layo
|
||||
this.style.paddingLeft = value;
|
||||
}
|
||||
|
||||
public get clipToBounds(): boolean {
|
||||
return this._getValue(LayoutBase.clipToBoundsProperty);
|
||||
}
|
||||
public set clipToBounds(value: boolean) {
|
||||
this._setValue(LayoutBase.clipToBoundsProperty, value);
|
||||
}
|
||||
|
||||
protected onClipToBoundsChanged(oldValue: boolean, newValue: boolean) {
|
||||
var nativeView = this._nativeView;
|
||||
if (!nativeView) {
|
||||
|
||||
Reference in New Issue
Block a user