I recently encountered this error when trying to resize a Stack group:
selectedItem.resize(bounds.parentWidth-margin*2, selectedItem.localBounds.height);
Error:
Plugin Error: Width dimension of the current SceneNode cannot be modified, since this field is disabled.
at _checkModifyDisabledDimensionFields (plugins/ScenegraphWrappers.js:1:2313)
at Text.<anonymous> (plugins/ScenegraphWrappers.js:1:17446)
at Text.resize (plugins/ScenegraphWrappers.js:1:1332)
at setEdges ()
Is there a property I can check like SceneNode.resizeDisabled? Or should I check if the SceneNode is a Stack layout before resizing or wrap it in a try catch block?
Also, for completeness adding other messages:
X position of the current SceneNode cannot be modified, since this field is disabled.
Y position of the current SceneNode cannot be modified, since this field is disabled.