arrowscrollbox in tooltip should be re-created

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-11-30 20:32:57 +09:00
parent cf49041b8c
commit e3b5a236d8
2 changed files with 6 additions and 9 deletions

View File

@ -153,9 +153,7 @@
oncommand="TreeStyleTabService.toggleFixed(TreeStyleTabService.getTabBrowserFromChild(this));"/>
</menupopup>
<tooltip id="treestyletab-full-tree-tooltip">
<arrowscrollbox flex="1" orient="vertical"/>
</tooltip>
<tooltip id="treestyletab-full-tree-tooltip"/>
</popupset>
</overlay>

View File

@ -393,7 +393,9 @@ FullTooltipManager.prototype = {
this.clear();
var tree = this.createTabItem(aTab);
var root = this.document.createDocumentFragment();
var root = this.document.createElement('arrowscrollbox');
root.setAttribute('orient', 'vertical');
root.setAttribute('flex', 1);
if (aExtraLabels) {
if (typeof aExtraLabels == 'string')
@ -409,16 +411,13 @@ FullTooltipManager.prototype = {
root.insertBefore(tree, root.firstChild && root.firstChild.nextSibling);
var range = this.document.createRange();
range.selectNodeContents(this.tabFullTooltip.firstChild);
range.insertNode(root);
range.detach();
this.tabFullTooltip.appendChild(root);
},
clear : function FTM_clear()
{
var range = this.document.createRange();
range.selectNodeContents(this.tabFullTooltip.firstChild);
range.selectNodeContents(this.tabFullTooltip);
range.deleteContents();
range.detach();
},