PDA

View Full Version : Newby: windows full height



Tobia
26 Sep 2008, 5:39 AM
Hello, i just startet my adventure on Ext... seems great, but a bit difficult :D

I tried to manage windows, splitted windows, etc. but i can not set the heigth to fit all the window. How can i set up a window that has the full height also if i resize the browser window? Is it possibile o i have to set it as "auto"? Becauce in this way the height can be lower if the content is not enought.
Thank you very much for any help,

bye.

santosh.rajan
26 Sep 2008, 5:47 AM
A window in Ext is like a dialog in other languages. You cant make it bigger than the application itself. Have you looked at Panel, Viewport etc? That might be the way to go.

mjlecomte
26 Sep 2008, 5:54 AM
You might start by looking at http://extjs.com/deploy/dev/examples/layout-browser/layout-browser.html

Get a rough idea of the layouts there. Then look in the API for more details including the discussion at the top of
http://extjs.com/deploy/dev/docs/?class=Ext.Container

Also have a read of this one:
http://extjs.com/deploy/dev/docs/?class=Ext.Component&member=render

Comprehension of those two areas should get you through 99% of the problems newcomers have with layouts.

Docs are changing with input from community, voice your suggestions for additions to the docs.

Tobia
26 Sep 2008, 6:03 AM
Good :-) I find what i miss, I had to create a ViewPort instead of Window!
Sorry ;)

Thanks and bye

Tobia
26 Sep 2008, 6:26 AM
I have another little trouble. I create a Viewport with regions, in the nav panel i want to put a tree. I set this as viewport object:


{
xtype: 'treepanel',
root: new Ext.tree.TreeNode({text:"Prova"}),
title: 'Navigation',
region:'west',
width: 175
}
But i don't know why, this tree has a padding of 15px... I have the default css, and i tried also to set "style: 'padding:0px'," in the code above, but nothing changed.
With firebug i find that this style command is set by Element.style and not form Css rules. How to change it?

Thanks

Tobia
26 Sep 2008, 6:31 AM
I'm sorry.. it was the "bodyStyle:" in a default properties. :((

santosh.rajan
26 Sep 2008, 6:36 AM
You look like a fast learner:)

Tobia
26 Sep 2008, 6:39 AM
Yes, i hope you will be patient with me :D

When i find Ext i thought: "Can't be... exactly what i need!", before i had to manage ajax and javascript a veeery lower mode.

Now i have just to learn it ~o)