mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Setting inline style - resets local properties
This commit is contained in:
@@ -761,7 +761,13 @@ export class View extends proxy.ProxyObject implements definition.View {
|
||||
|
||||
private _applyInlineStyle(inlineStyle) {
|
||||
if (types.isString(inlineStyle)) {
|
||||
styleScope.applyInlineSyle(this, <string>inlineStyle);
|
||||
try {
|
||||
this.style._beginUpdate();
|
||||
this.style._resetLocalValues();
|
||||
styleScope.applyInlineSyle(this, <string>inlineStyle);
|
||||
} finally {
|
||||
this.style._endUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user