1. #1
    Sencha User
    Join Date
    Sep 2012
    Location
    Oslo
    Posts
    7
    Vote Rating
    0
    SergioKastro is on a distinguished road

      0  

    Default Applying height and width through css style does not work

    Applying height and width through css style does not work


    I have the following code:
    Code:
    var win = new Ext.Window({
    width:200,
    height:200, 
    autoScroll: true,
    closable: false,
    border: false,
    shadow: true,
    draggable: false
    });
    
    win.show();
    
    And I want to use css styles to set the width and height, look the follwoing code:
    Code:
    var win = new Ext.Window({   
    cls: 'test-class',
    autoScroll: true,
    closable: false,
    border: false,
    shadow: true,
    draggable: false
    });
    
    win.show();
    css style class:
    Code:
    .test-class {
    height:200px; 
    width:200px;
    background:blue;
    }
    But the height and width are not set, instead the background yes.

    Can you let me know how can I set the width and height through css style classes?

    Thank you in advance.

  2. #2
    Touch Premium Member suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    435
    Vote Rating
    37
    suzuki1100nz has a spectacular aura about suzuki1100nz has a spectacular aura about suzuki1100nz has a spectacular aura about

      1  

    Default


    Apply it to the bodyCls of the window

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Location
    Oslo
    Posts
    7
    Vote Rating
    0
    SergioKastro is on a distinguished road

      0  

    Default


    Yes, it works. Thank you very much

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar