arrowscrollbox in tooltip should be re-created
This commit is contained in:
parent
cf49041b8c
commit
e3b5a236d8
@ -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>
|
||||
|
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user