You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current layout() function declared on the SyComponentType does the necessary grunt work to lay out the current component, but it then goes on to call layout() on the child components. While it should do this, some components that override this method are only interested in the first half of the work that the method does. Unfortunately, they only have the option to call the entire method and possibly end up laying out child components twice.
Three methods should be provided: layoutThis, layoutChildren and layout. layout calls layoutThis and then layoutChildren. Overrides of layout can call layoutThis and layoutChildren as necessary.
The text was updated successfully, but these errors were encountered:
The current
layout()
function declared on theSyComponentType
does the necessary grunt work to lay out the current component, but it then goes on to calllayout()
on the child components. While it should do this, some components that override this method are only interested in the first half of the work that the method does. Unfortunately, they only have the option to call the entire method and possibly end up laying out child components twice.Three methods should be provided:
layoutThis
,layoutChildren
andlayout
.layout
callslayoutThis
and thenlayoutChildren
. Overrides oflayout
can calllayoutThis
andlayoutChildren
as necessary.The text was updated successfully, but these errors were encountered: