Merge pull request #984 from NativeScript/nnikolov/BlackBackgroundIssue

Fixed black background on some controls in iOS.
This commit is contained in:
Nedyalko Nikolov
2015-10-26 10:32:26 +02:00

View File

@ -601,7 +601,9 @@ export class Style extends DependencyObservable implements styling.Style {
} }
public _boundsChanged() { public _boundsChanged() {
this._applyProperty(backgroundInternalProperty, this._getValue(backgroundInternalProperty)); if (!(<background.Background>this._getValue(backgroundInternalProperty)).isEmpty()) {
this._applyProperty(backgroundInternalProperty, this._getValue(backgroundInternalProperty));
}
} }
private _applyProperty(property: Property, newValue: any) { private _applyProperty(property: Property, newValue: any) {