PDA

View Full Version : Question about filling and resize



vIceBerg
12 Oct 2009, 9:08 PM
Hi!

My last question was too specific and I'm as lost as I was.

Lets say I have a DIV somewhere on a page. It can be anywhere.

I want to put a ExtJS component in that DIV (tree, grid, anything)

I want that component to fill the entire DIV and to resize if the DIV is resizing.

Is that behaviour possible? I can't specify '100%' in the width or height of the component... I really need some lights...

The answer to my last question was to use a Viewport. But the viewport renders to the body and the DIV can be anywhere, not a specific "region".

Thanks

VB

Animal
12 Oct 2009, 11:22 PM
IF. If you want an isolated island of fluid, Ext layout, then use Condor's FitToParent plugin:

http://www.extjs.com/forum/showthread.php?t=28318

If you want a properly layed out application occupying the browser window, use a Viewport.

vIceBerg
13 Oct 2009, 6:06 AM
Thanks.

I'll try this right away.

vIceBerg
13 Oct 2009, 9:40 PM
It was the solution I was looking for.

Thanks for your time.