mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Remove code that moves actionBar when there is incoming call. We now depend on the autolayout to position us correctly. _addView, _removeView won't request layout for iOS. LayoutBase: addChild & remvoeChild will request layout. ContentView: content change will request layout.
37 lines
967 B
TypeScript
37 lines
967 B
TypeScript
import { LayoutBaseCommon, clipToBoundsProperty, View } from "./layout-base-common";
|
|
|
|
export * from "./layout-base-common";
|
|
|
|
export class LayoutBase extends LayoutBaseCommon {
|
|
nativeViewProtected: UIView;
|
|
|
|
public addChild(child: View): void {
|
|
super.addChild(child);
|
|
this.requestLayout();
|
|
}
|
|
|
|
public insertChild(child: View, atIndex: number): void {
|
|
super.insertChild(child, atIndex);
|
|
this.requestLayout();
|
|
}
|
|
|
|
public removeChild(child: View): void {
|
|
super.removeChild(child);
|
|
this.requestLayout();
|
|
}
|
|
|
|
_setNativeClipToBounds() {
|
|
if (this.clipToBounds) {
|
|
this.nativeViewProtected.clipsToBounds = true;
|
|
} else {
|
|
super._setNativeClipToBounds();
|
|
}
|
|
}
|
|
|
|
[clipToBoundsProperty.getDefault](): boolean {
|
|
return false;
|
|
}
|
|
[clipToBoundsProperty.setNative](value: boolean) {
|
|
this._setNativeClipToBounds();
|
|
}
|
|
} |