Bug 274076 - Move flex/max-width to CSS so that it can be override by userChrome.css.

ChatZilla only.
r=rginda
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-12-10 20:04:36 +00:00
Родитель 5cf54610bc
Коммит e640646f7f
3 изменённых файлов: 9 добавлений и 5 удалений

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

@ -125,7 +125,7 @@
<tab collapsed="true"/> <!-- dummy tab to keep the freaking xbl from
causing an exception -->
</tabs>
<spacer flex="10000"/>
<spacer id="views-tbar-spacer"/>
</scrollbox>
</hbox>
</hbox>

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

@ -2637,12 +2637,10 @@ function getTabForObject (source, create)
tb.setAttribute("href", source.getURL());
tb.setAttribute("name", source.unicodeName);
tb.setAttribute("onclick", "onTabClick(event, " + id.quote() + ");");
tb.setAttribute("maxwidth", "250");
tb.setAttribute("flex", "1");
// This wouldn't be here if there was a supported CSS property for it.
tb.setAttribute("crop", "center");
tb.setAttribute("context", "context:tab");
tb.setAttribute("tooltip", "xul-tooltip-mode");
tb.setAttribute("tooltip", "xul-tooltip-node");
tb.setAttribute("class", "tab-bottom view-button");
tb.setAttribute("id", id);
tb.setAttribute("state", "normal");

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

@ -80,9 +80,15 @@ window {
background: darkslategrey !important;
}
#views-tbar-spacer {
-moz-box-flex: 10000;
}
.view-button {
/* do NOT set colour, at least not without background. :) */
text-align: center;
max-width: 30ex;
-moz-box-flex: 1;
}
.view-button[state="current"] {