1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default Ext.Viewport: width and height ??

    Ext.Viewport: width and height ??


    Hi,
    i d like to limit the sitz of my Ext.Viewport.

    But this doesnt work!


    PHP Code:
        var viewport = new Ext.Viewport({
            
    layout'border',
        
    width900,
            
    height400,
            
    items: [actioncontent]
        }); 

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Viewport is a special Container which maps the browser viewport.

    If you are dicating the size and position, then you want a Panel.

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default


    but i cant split a Panel into a 'west' and 'center' region, can i ?

  4. #4
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    1
    devnull is an unknown quantity at this point

      0  

    Default


    no, but you can a borderlayout.

  5. #5
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default


    Quote Originally Posted by devnull View Post
    no, but you can a borderlayout.
    i tought this is a border layout?!

    PHP Code:
      var viewport = new Ext.Viewport({
            
    layout'border', [..] 

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    devnull misses the point a bit.

    A Panel can have layout:'border', and its child items then must each have a region config.

  7. #7
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    devnull misses the point a bit.

    A Panel can have layout:'border', and its child items then must each have a region config.
    Cool ;-)

    But how to get height: 100%?

    This throws an error!

  8. #8
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    So you want height to track the browser viewport height, but width to be fixed?

  9. #9
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    So you want height to track the browser viewport height, but width to be fixed?
    that's 100% correct!

  10. #10
    Ext User
    Join Date
    Apr 2008
    Posts
    10
    Vote Rating
    0
    mattpowell is on a distinguished road

      0  

    Default


    Bumb, I'm looking to accomplish this too!

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