What is the correct substitute for doLayout in ExtJS 6

code4jhon picture code4jhon · May 5, 2016 · Viewed 7.3k times · Source

So doLayout was removed from Ext.Container in ExtJS 6 and I'm trying to figure out what's the proper substitute of it. Or is it just not necessary at all to do a call to a method to refresh the layout ? and I'm using updateLayout but I'm not sure this is the way to go.

Any ideas?

Answer

aMazing picture aMazing · Sep 19, 2016

updateLayout is the answer. doLayout has been deprecated and no longer valid.

API Docs Link here

Updates this component's layout. If this update affects this components ownerCt, that component's updateLayout method will be called to perform the layout instead. Otherwise, just this component (and its child items) will layout.