Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct substitute for doLayout in ExtJS 6

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?

like image 651
code4jhon Avatar asked May 05 '16 02:05

code4jhon


1 Answers

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.

like image 135
aMazing Avatar answered Oct 17 '22 21:10

aMazing