Results 1 to 4 of 4

Thread: Set Ext.window.Window height and width via CSS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium User
    Join Date
    Dec 2010
    Posts
    38
    Vote Rating
    0
      0  

    Default Set Ext.window.Window height and width via CSS

    Is there a way to set the height and width of the Window using CSS? The values I set on my class just get overridden by element.style attributes. If I attempt to set them using max-height/width or use !important the window is not laid out correctly.

    Thanks

  2. #2
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      0  

    Default

    The window class will manage its height using its layout + the size of its child components.

    Or, you can set the height and width manually.

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2013
    Posts
    50
    Answers
    2
    Vote Rating
    1
      0  

    Default Setting Window height

    I need to override the window height by using CSS.

    I have declared a class style 'allWindows' in my external css.
    .allWindows
    {
    height: 640px;
    }

    I had set the cls property for my window as 'allWindows'
    But it is not overriding the default height.

    I need to override the default height.
    How can i achieve this in CSS?

  4. #4
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      0  

    Default

    I would not recommend setting component dimensions via CSS.
    Instead you can extend Ext.window.Window giving it a set height and then instantiate your derived class. See the Fiddle below for an example:


    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

Tags for this Thread

Posting Permissions

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