Results 1 to 8 of 8

Thread: Newby: windows full height

  1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    19

    Question Newby: windows full height

    Hello, i just startet my adventure on Ext... seems great, but a bit difficult

    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.

  2. #2
    Ext User santosh.rajan's Avatar
    Join Date
    Sep 2007
    Location
    Kannur, Kerala, India
    Posts
    611

    Default

    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.
    Make everything as simple as possible, but not simpler.
    - Albert Einstein

  3. #3
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996

    Default

    You might start by looking at http://extjs.com/deploy/dev/examples...t-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/?cl...&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.

  4. #4
    Ext User
    Join Date
    Sep 2008
    Posts
    19

    Default

    Good :-) I find what i miss, I had to create a ViewPort instead of Window!
    Sorry

    Thanks and bye

  5. #5
    Ext User
    Join Date
    Sep 2008
    Posts
    19

    Default

    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:
    Code:
    {
                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

  6. #6
    Ext User
    Join Date
    Sep 2008
    Posts
    19

    Default

    I'm sorry.. it was the "bodyStyle:" in a default properties.

  7. #7
    Ext User santosh.rajan's Avatar
    Join Date
    Sep 2007
    Location
    Kannur, Kerala, India
    Posts
    611

    Default

    You look like a fast learner
    Make everything as simple as possible, but not simpler.
    - Albert Einstein

  8. #8
    Ext User
    Join Date
    Sep 2008
    Posts
    19

    Default

    Yes, i hope you will be patient with me

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •