From 67624cfe578e58f46b16354174f30859f12697cc Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Fri, 23 Oct 2015 18:49:56 +0300 Subject: [PATCH] Fixed black background on some controls in iOS. --- ui/styling/style.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/styling/style.ts b/ui/styling/style.ts index 7332d0f4a..1ebe2aba2 100644 --- a/ui/styling/style.ts +++ b/ui/styling/style.ts @@ -601,7 +601,9 @@ export class Style extends DependencyObservable implements styling.Style { } public _boundsChanged() { - this._applyProperty(backgroundInternalProperty, this._getValue(backgroundInternalProperty)); + if (!(this._getValue(backgroundInternalProperty)).isEmpty()) { + this._applyProperty(backgroundInternalProperty, this._getValue(backgroundInternalProperty)); + } } private _applyProperty(property: Property, newValue: any) {