beebon
13 Nov 2011, 7:22 PM
All my source below:
1.Index.html
-------------------------------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>my test</title>
<link rel="stylesheet" type="text/css" href="Touch/resources/css/sencha-touch.css" />
<script type="text/javascript" src="Touch/sencha-touch-debug.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&language=cn"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
-------------------------------------------------------------------------
2.app.js
-------------------------------------------------------------------------
Ext.Loader.setConfig({ enabled: true });
var app = new Ext.application({
name:'app',
launch: function () { Ext.create("app.view.AppPanel"); }
});
-------------------------------------------------------------------------
3.app.view.AppPanel
-------------------------------------------------------------------------
Ext.define("app.view.AppPanel", {
extend: 'Ext.tab.Panel',
requires: ['app.view.MapView'],
config: {
tabBarPosition: 'bottom',
fullscreen:true,
items: [
{
xtype: 'MapView',
title: 'view2'
},
{
title: 'view1',
html:'view1'
}
]
}
});
-------------------------------------------------------------------------
4.app.view.MapView
-------------------------------------------------------------------------
Ext.define('app.view.MapView', {
extend: 'Ext.Map',
xtype: 'MapView'
});
-------------------------------------------------------------------------
the question is : when I change the tab to mapview in chrome,the map shows umcompletely(see the image below),if I change the tabpanel items order like:
items: [
{
xtype: 'MappView',
title: 'view2'
},
{
title: 'view1',
html:'view1'
}
]
the map will shows rightly,I don't know if it's a bug ,have anyone met the same problem like that? need for your helping.ths!!!
http://beebon.net/images/mapview.pnghttp://beebon.net/images/mapview1.png
1.Index.html
-------------------------------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>my test</title>
<link rel="stylesheet" type="text/css" href="Touch/resources/css/sencha-touch.css" />
<script type="text/javascript" src="Touch/sencha-touch-debug.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&language=cn"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
-------------------------------------------------------------------------
2.app.js
-------------------------------------------------------------------------
Ext.Loader.setConfig({ enabled: true });
var app = new Ext.application({
name:'app',
launch: function () { Ext.create("app.view.AppPanel"); }
});
-------------------------------------------------------------------------
3.app.view.AppPanel
-------------------------------------------------------------------------
Ext.define("app.view.AppPanel", {
extend: 'Ext.tab.Panel',
requires: ['app.view.MapView'],
config: {
tabBarPosition: 'bottom',
fullscreen:true,
items: [
{
xtype: 'MapView',
title: 'view2'
},
{
title: 'view1',
html:'view1'
}
]
}
});
-------------------------------------------------------------------------
4.app.view.MapView
-------------------------------------------------------------------------
Ext.define('app.view.MapView', {
extend: 'Ext.Map',
xtype: 'MapView'
});
-------------------------------------------------------------------------
the question is : when I change the tab to mapview in chrome,the map shows umcompletely(see the image below),if I change the tabpanel items order like:
items: [
{
xtype: 'MappView',
title: 'view2'
},
{
title: 'view1',
html:'view1'
}
]
the map will shows rightly,I don't know if it's a bug ,have anyone met the same problem like that? need for your helping.ths!!!
http://beebon.net/images/mapview.pnghttp://beebon.net/images/mapview1.png