mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix native image recreated on layout even if the view is not resized
This commit is contained in:
@@ -647,7 +647,7 @@ export class Style extends DependencyObservable implements styling.Style {
|
||||
});
|
||||
}
|
||||
|
||||
public _boundsChanged() {
|
||||
public _sizeChanged() {
|
||||
if (!(<background.Background>this._getValue(backgroundInternalProperty)).isEmpty()) {
|
||||
this._applyProperty(backgroundInternalProperty, this._getValue(backgroundInternalProperty));
|
||||
}
|
||||
@@ -671,7 +671,7 @@ export class Style extends DependencyObservable implements styling.Style {
|
||||
}
|
||||
|
||||
private _applyStyleProperty(property: Property, newValue: any) {
|
||||
|
||||
|
||||
if (!this._view._shouldApplyStyleHandlers()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user