PDA

View Full Version : Grid not resizing upon collapse west panel



taberg
23 Oct 2011, 1:10 AM
I am trying to create a layout for a project i am working on,
I am having difficulties with a grid that will not resize when i collapse the west panel.

i have seen threads on fittoparent plugins and such. but i just cant seem to figure it out.

helpful for any suggestions!

behaviour and source is visible here:
http://www.tabergconsulting.com/insyn/index.html

regards Tomas

twaindev
23 Oct 2011, 1:58 AM
Your example works just fine for me.

taberg
23 Oct 2011, 2:03 AM
Your example works just fine for me.

Did you also collapse the west panel? thats when the grid doesnt resize.

I have tried it in chrome and safari, and problem is there for me...

however, if i resize one of the columns, the whole grid resizing starts working again... which is very strange to me.

Tomas

twaindev
23 Oct 2011, 2:10 AM
There is an error about an unresolved reference to Ext.ux.status.StatusBar that is probably causing this:

28805

taberg
23 Oct 2011, 3:09 AM
There is an error about an unresolved reference to Ext.ux.status.StatusBar that is probably causing this:

28805

that may just be the reason! missed that. But also.. cant find the root of the error... any suggestions?

tomas

taberg
23 Oct 2011, 4:03 AM
that may just be the reason! missed that. But also.. cant find the root of the error... any suggestions?

tomas

solved the sizing problem.. just a brainfreeze from me, with anchor layout in the tabs all was ok!

about the unresolved reference, i dont know...
but thats another thread..

solution:

layout anchor on the parent
width and height 100% in the grid..

tomas

twaindev
23 Oct 2011, 5:07 AM
You can then also use layout: 'fit'.

And LiveSearchGridPanel.js references the StatusBar component, but it can not be dynamically loaded because the Ext.Loader.setConfig is in a script that is not yet loaded.