Results 1 to 3 of 3

Thread: percent width or height for a window is not supported?

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    11

    Default percent width or height for a window is not supported?

    Extjs 4.0
    I can set the percent width or height of the viewport
    Code:
    Ext.Window( {
         width:'80%',
         height:'80%'
    } )
    but now Extjs 4.1
    it is not supported , is the feature removed ?

  2. #2

    Default

    Does this work:
    Code:
    width: 0.8,
    height: 0.8
    ??

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    11

    Default

    Quote Originally Posted by MaximusDecimus View Post
    Does this work:
    Code:
    width: 0.8,
    height: 0.8
    ??
    i fixed it by this

    Code:
    listeners : {
                    show : function(){
                        var size = Ext.getBody().getViewSize();
                        this.setHeight(.8 * size.height );
                        this.setWidth(.8 * size.width );
                        this.alignTo(this.container, 'c-c');
                    }
                }

Posting Permissions

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