mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: tslint errors
This commit is contained in:
@@ -219,7 +219,10 @@ export const widthProperty = new CssAnimationProperty<Style, PercentLength>({
|
|||||||
// on the animation property, so fake it here. x_x
|
// on the animation property, so fake it here. x_x
|
||||||
valueChanged: (target, oldValue, newValue) => {
|
valueChanged: (target, oldValue, newValue) => {
|
||||||
if (isIOS) {
|
if (isIOS) {
|
||||||
target.view.requestLayout();
|
const view = target.viewRef.get();
|
||||||
|
if (view) {
|
||||||
|
view.requestLayout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, valueConverter: PercentLength.parse });
|
}, valueConverter: PercentLength.parse });
|
||||||
widthProperty.register(Style);
|
widthProperty.register(Style);
|
||||||
@@ -230,7 +233,10 @@ export const heightProperty = new CssAnimationProperty<Style, PercentLength>({
|
|||||||
// on the animation property, so fake it here. -_-
|
// on the animation property, so fake it here. -_-
|
||||||
valueChanged: (target, oldValue, newValue) => {
|
valueChanged: (target, oldValue, newValue) => {
|
||||||
if (isIOS) {
|
if (isIOS) {
|
||||||
target.view.requestLayout();
|
const view = target.viewRef.get();
|
||||||
|
if (view) {
|
||||||
|
view.requestLayout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, valueConverter: PercentLength.parse,
|
}, valueConverter: PercentLength.parse,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user