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
    447
    Vote Rating
    62
    suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi