PDA

View Full Version : toolbar in viewport not showing in ff



cs01rsw
18 Mar 2010, 12:53 PM
hi,

i am attempting to run some code that places a simple toolbar in a viewport. The toolbar shows in IE but the north panel is about 3 pixels high in Firefox and doesnt show the toolbar at all: can anyone spot what may be the problem :-?.

Thanks. Here is the code:

<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="../CommonFiles/extjs/resources/css/ext-all.css" />
<script src="../CommonFiles/extjs/adapter/ext/ext-base.js"></script>
<script src="../CommonFiles/extjs/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = '../CommonFiles/extjs/resources/images/default/s.gif';

var viewport = new Ext.Viewport({
layout: 'border',
renderTo: Ext.getBody(),
items: [{
region: 'north',
xtype: 'toolbar',
items: [{
xtype: 'tbspacer'
},{

xtype: 'tbbutton',
text: 'Button',
handler: function(btn){
btn.disable();
}
},{
xtype: 'tbfill'
}]
},{
region: 'center',
xtype: 'panel',
html: 'Center'
}]
});
});
</script>
</head>
<body>
<!-- Nothing in the body -->
</body>
</html>