[BUG REPORT] Widget properties not updated when updateAlignment is called

Hi everyone :slight_smile:

Just a post to report a bug into Cocos Creator (not sure I already found a post about this oneā€¦): after changing the value of bottom from a widget component added into a Button, I use the updateAlignment() function to update the y value of the node (in this case the Button), but it looks like nothing happensā€¦
Step to reproduce:

  • Add a Button to a scene
  • Add the component Widget
  • Change programatically the value of property bottom of the widget (from a script bound to the Button component)

Result: no change

Hope this help :slight_smile:

Sorry it is a bug about Widget.alignOnce, you can upgrade to 1.4.2 or disable alignOnce.

okay :slight_smile:, thanks, iā€™ll try that :+1: