Fix native image recreated on layout even if the view is not resized

This commit is contained in:
Panayot Cankov
2015-12-03 16:53:25 +02:00
parent a2d21d8f19
commit d61ab801e9
5 changed files with 104 additions and 15 deletions

View File

@@ -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;
}