1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    khajvah is on a distinguished road

      0  

    Default Can't set panel width or heoght.

    Can't set panel width or heoght.


    Hello people,

    I am quite new to extjs and js, so i decided to make a simple website to practice. I decided to make whole website with extjs (panels with some html/css) and use MVC.I started with navigation bar, which is panel with html/css, but i cant set its width or height.

    Code:
    Ext.define('ws.view.view.menu', { 	extend: 'Ext.panel.Panel', 
    	
    	alias: 'widget.nav', //so i can use xtype
    
    
    	width: 200, // this is not working...
    	html: '<p>navbar's html and css will go here</p>'
    });
    Code:
    Ext.application({    requires: ['Ext.container.Viewport'],
        name: 'ws',
    
    
        appFolder: 'app',
    
    
        controllers: ['main'], 
    
    
        launch: function() {
            Ext.create('Ext.container.Viewport', {
                layout: 'fit',
                items: [
                    {
                        xtype: 'nav',
                        // i tried to set height and wiidth here but again no help.
                    }
                ]
            });
        }
    });
    Please, tell me, how can i do what i want and also, please, tell me if it is good idea to design whole website with extjs like i want to do...

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      1  

    Default


    you are putting your panel into a container (viewport) with layout:'fit' which means max availbale size. the layout manager has a higher priority than the sizes you specify manually.

    please use the correct forums -> ext 4 qa for this one.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    khajvah is on a distinguished road

      0  

    Default


    Thanks you very much, and sorry for wrong place(i didnt see ext4 qa)

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