gnosis
24 Aug 2007, 10:06 AM
Check this out:
HTML
<div id="libraryBrowserDialogContainer" style="visibility:hidden;">
<div class="x-dlg-hd">Library Browser</div>
<div class="x-dlg-bd">
<div class="x-dlg-tab" title="Modules">
<div class="inner-tab">
Hello...<br><br><br>
</div>
</div>
<div class="x-dlg-tab" title="Pages">
<div class="inner-tab">
... World!
</div>
</div>
</div>
</div>
JS:
var dialog;
if(!dialog){
dialog = new Ext.BasicDialog('libraryBrowserDialogContainer', {
autoTabs:true,
width:500,
height:300,
shadow:true,
minWidth:300,
minHeight:250,
proxyDrag: true
});
dialog.addButton('Close', dialog.hide, dialog);
}
dialog.show('center-peg');
This code is taken straight from the basic dialog example, with just a couple names changed, so I can't figure what the heck is wrong. When this code is triggered (by a menu item) the dialog opens and looks great. If I click the Close button, then click the menu item again to re-open it, the titles of the tabs are gone. What's up with that?
Thanks,
G
HTML
<div id="libraryBrowserDialogContainer" style="visibility:hidden;">
<div class="x-dlg-hd">Library Browser</div>
<div class="x-dlg-bd">
<div class="x-dlg-tab" title="Modules">
<div class="inner-tab">
Hello...<br><br><br>
</div>
</div>
<div class="x-dlg-tab" title="Pages">
<div class="inner-tab">
... World!
</div>
</div>
</div>
</div>
JS:
var dialog;
if(!dialog){
dialog = new Ext.BasicDialog('libraryBrowserDialogContainer', {
autoTabs:true,
width:500,
height:300,
shadow:true,
minWidth:300,
minHeight:250,
proxyDrag: true
});
dialog.addButton('Close', dialog.hide, dialog);
}
dialog.show('center-peg');
This code is taken straight from the basic dialog example, with just a couple names changed, so I can't figure what the heck is wrong. When this code is triggered (by a menu item) the dialog opens and looks great. If I click the Close button, then click the menu item again to re-open it, the titles of the tabs are gone. What's up with that?
Thanks,
G