_boundsChanged method added

This commit is contained in:
Vladimir Enchev
2015-10-21 13:20:48 +03:00
parent 421845ef9b
commit 129c305942
3 changed files with 6 additions and 4 deletions

View File

@ -274,10 +274,7 @@ export class View extends viewCommon.View {
}
private _onBoundsChanged() {
var bgColor = background.ios.createBackgroundUIColor(this);
if (bgColor) {
this._nativeView.backgroundColor = bgColor;
}
this.style._boundsChanged();
}
}

View File

@ -71,6 +71,7 @@ declare module "ui/styling/style" {
public _syncNativeProperties(): void;
public _inheritStyleProperty(property: Property): void;
public _inheritStyleProperties(): void;
public _boundsChanged(): void;
}
export function registerHandler(property: Property, handler: styling.stylers.StylePropertyChangedHandler, className?: string);

View File

@ -599,6 +599,10 @@ export class Style extends DependencyObservable implements styling.Style {
});
}
public _boundsChanged() {
this._applyProperty(backgroundInternalProperty, this._getValue(backgroundInternalProperty));
}
private _applyProperty(property: Property, newValue: any) {
this._applyStyleProperty(property, newValue);