Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    395
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default [TOUCH-1426] - not fixed as per Beta release notes, I think?!

    [TOUCH-1426] - not fixed as per Beta release notes, I think?!


    Hi,

    I was pleased to see you say you had fixed an issue in the beta release with the Map when a screen orientation change occurs when the map is not visible.

    After switching to the beta release and testing in my application, I am still facing problems with this.

    I have a tab panel with three panels\tabs, one is a map, one is a list. If I am on the list and change orientation and switch back to my map display, it still displays the map on only a portion of the screen and does not resize correctly. An orientation change then sorts this out.

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    I can't duplicate the issue any longer. If I use the Kitchensink, go to a Map, then change to the List, change orientation, then return to the Map, it looks correct.

    I'll need more details to try and pin down the issue. ie. what device you are testing with, what OS, maybe a code example.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    395
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Hi Jamie,

    I have been playing with a much more cut down version of my main application and I believe my issue stems from me trying to use a container layout as follows:

    Code:
    Ext.application({
        name: 'Sencha',
    
    
        launch: function() {
            Ext.create('Ext.TabPanel', {
    			fullscreen: true,
    			tabBarPosition: 'bottom',
    			defaults: {
    				styleHtmlContent: true
    			},
    			items: [
    				{
    					title: 'Map',
    					iconCls: 'maps',
    					xtype: 'container',
    					layout: 'fit',
    					items: [{
    						xtype:'map'
    					 },{
    						xtype: 'toolbar',
    						docked: 'bottom',
    						ui: 'light',
    						items: [{
    							xtype: 'label',
    							html: 'Show:',
    							style: 'color:white;',
    							itemId: 'labelShow'
    						},{
    							xtype: 'selectfield',
    							store: {
    								fields: ['name'],
    								data: [
    									{name: 'Cowper'},
    									{name: 'Everett'},
    									{name: 'University'},
    									{name: 'Forest'}
    								]
    							},
    							displayField: 'name',
    							valueField: 'name'
    						}]
    					}]
    				},
    				{
    					title: 'Locations',
    					iconCls: 'locate',
    					xtype: 'list',
    					 store: {
    						fields: ['name'],
    						data: [
    							{name: 'Cowper'},
    							{name: 'Everett'},
    							{name: 'University'},
    							{name: 'Forest'}
    						]
    					},
    
    
    					itemTpl: '{name}'
    				}
    			]
    		});
        }
    });
    I have coded in this way so I can get a docked toolbar to appear below my map. When I change orientation on my List view and navigate back to the Map I then get the problem originally described where the map does not resize and fill the screen space correctly (testing on iPad2 by the way)

    Its probably down to my understanding of layouts, I suspect there is a better way?!

    Thanks

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Now I can see the issue. The previous change was too narrow a fix as it only worked if the Map itself was hidden. In your case it's within a container which is hidden. I have updated to code to work properly in both cases now and it will work in beta 2.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User
    Join Date
    Jun 2009
    Posts
    395
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Hi,

    I have noticed in the GA version, this issue seems to have crept back in again where if a Map is within a Container which is hidden and the dimensions change at all, showing the container doesnt cause the map to resize correctly.

    Can you please confirm if this is indeed still a bug?

  6. #6
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Quote Originally Posted by parky128 View Post
    Hi,

    I have noticed in the GA version, this issue seems to have crept back in again where if a Map is within a Container which is hidden and the dimensions change at all, showing the container doesnt cause the map to resize correctly.

    Can you please confirm if this is indeed still a bug?
    If you can provide a test case where you still have this problem, please start a new thread and I will be happy to open it as a new issue.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1