OnResize function for widgets

Hi,

Whenever i resize any widget, i need to call a function (while resizing itself, repeatedly) that will update the width and height of the widgets. That means, dynamically i need to get the widht and height values while resizing.
Please help me in this. i was searching all the methods but, no result.

Thanks
Suresh S

You could observe Canvas.resizeTo() - search the docs for “observe”

Thanks, but, i have used resized() function. It works.

Yes, but always bear in mind when overriding a method that is not publicly documented, that we consider such methods to be internal and they are not guaranteed to be backward-compatible in future releases. Also, in this particular case, the default implementation is doing some important work - be sure to call it with Super() from somewhere within your own impl.