Skip to content

Commit 1049fcc

Browse files
Revert _applyXMLAttributes to set style, rows, columns and fontAttributes as properties (NativeScript#4911)
1 parent 27773e9 commit 1049fcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tns-core-modules/ui/core/view-base/view-base.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,11 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
768768
* Now attributes are expected to be set as plain properties on the view instances.
769769
* @deprecated
770770
*/
771-
public _applyXmlAttribute(): boolean {
771+
public _applyXmlAttribute(attribute: string, value: string): boolean {
772+
if (attribute === "style" || attribute === "rows" || attribute === "columns" || attribute === "fontAttributes") {
773+
this[attribute] = value;
774+
return true;
775+
}
772776
return false;
773777
}
774778

0 commit comments

Comments
 (0)