1. #11
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    Answers
    93
    rdougan will become famous soon enough

      0  

    Default


    Also, in the future please use [code] tags.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  2. #12
    Sencha User
    Join Date
    Dec 2009
    Posts
    9
    Vote Rating
    0
    pinker is on a distinguished road

      0  

    Default


    Thanks.

  3. #13
    Sencha User
    Join Date
    Dec 2009
    Posts
    9
    Vote Rating
    0
    pinker is on a distinguished road

      0  

    Default


    One last question. How can I say that the map will take the biggest width (flex: 2) in the code below:

    Code:
    Ext.application({
       launch: function()  {
           Ext.Viewport.add({
               layout: {
                   type: 'hbox',
                   align: 'stretch'
               },
    	   
               defaults: {
                   flex: 1
               },
               items: [
                   {
    		  
                       html: 'html',
                       style: 'background:lightgray',
    	       flex: 1
                   },
                   map
               ]
           });
       }
    });

  4. #14
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    Answers
    93
    rdougan will become famous soon enough

      0  

    Default


    Put 'flex:1' inside your Map component.

    Code:
    Ext.create('Ext.Map', {
        flex: 2
    });
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 1