View Full Version : toolbar in viewport not showing in ff

18 Mar 2010, 12:53 PM

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:

<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.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){
xtype: 'tbfill'
region: 'center',
xtype: 'panel',
html: 'Center'
<!-- Nothing in the body -->