Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    37
    Vote Rating
    0
    rchloupe is on a distinguished road

      0  

    Default Unanswered: 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 - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,129
    Vote Rating
    228
    Answers
    494
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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
    Vote Rating
    1
    Answers
    2
    vinothsencha is on a distinguished road

      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 - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,129
    Vote Rating
    228
    Answers
    494
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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

Thread Participants: 2

Tags for this Thread