Hide tabeditor when it has no tab; b=355655, r=laurent@xulfr.org

This commit is contained in:
daniel%glazman.org 2006-10-06 12:25:59 +00:00
Родитель 6aeed837a3
Коммит cf088a0db9
3 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -13,7 +13,7 @@
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Mozilla Composer.
- The Original Code is Composer.
-
- The Initial Developer of the Original Code is
- Disruptive Innovations SARL.
@ -61,8 +61,7 @@
<xul:tabs flex="1" class="tabbrowser-tabs" anonid="EditorTabs" closebutton="true"
setfocus="false" onselect="onTabSelected(event)"/>
</xul:hbox>
<xul:tabpanels anonid="EditorTabpanels" selectedIndex="0" flex="1"
style="border: red solid thick; background-color: gray ! important"/>
<xul:tabpanels anonid="EditorTabpanels" selectedIndex="0" flex="1" />
</xul:tabbox>
</content>
@ -274,6 +273,8 @@
this.selectedIndex = this.mTabpanels.childNodes.length - 1;
window.EditorLoadUrl(newEditorElement, aURL);
this.setAttribute("visibility", "visible");
return {tab: newTab, panel: newEditorElement};
]]>
</body>

Просмотреть файл

@ -87,7 +87,7 @@
<sidebar id="sidebar1" sidebaritems="" persist="sidebaritems"/>
<splitter id="splitter1" collapse="before" resizebefore="closest"/>
<vbox flex="1">
<tabeditor id="tabeditor" flex="1"/>
<tabeditor id="tabeditor" flex="1" visibility="hidden"/>
<hbox>
<label value="structure toolbar" />
</hbox>

Просмотреть файл

@ -49,6 +49,10 @@ tabeditor {
-moz-binding: url('chrome://composer/content/bindings/tabeditor.xml#tabeditor');
}
tabeditor[visibility="hidden"] {
visibility: hidden;
}
#composer-throbber {
list-style-image: url('chrome://composer/skin/logo.png');
}