Bug 1198331 - Titles in sidebar aren't cropped and cross borders between tabs (titles are to long in some locales). r=pbrosset

This commit is contained in:
Raphaël Lustin 2015-09-28 15:25:00 +02:00
parent 7f7156dbed
commit bb1aabfc68
2 changed files with 8 additions and 0 deletions

View File

@ -225,6 +225,7 @@ ToolSidebar.prototype = {
this._tabbox.tabs.appendChild(tab);
tab.setAttribute("label", ""); // Avoid showing "undefined" while the tab is loading
tab.setAttribute("id", this.TAB_ID_PREFIX + id);
tab.setAttribute("crop", "end");
// Add the tab to the allTabs menu if exists
let allTabsItem = this._addItemToAllTabsMenu(id, tab, selected);

View File

@ -319,18 +319,25 @@
handleCtrlTab="false">
<tabs>
<tab id="headers-tab"
crop="end"
label="&netmonitorUI.tab.headers;"/>
<tab id="cookies-tab"
crop="end"
label="&netmonitorUI.tab.cookies;"/>
<tab id="params-tab"
crop="end"
label="&netmonitorUI.tab.params;"/>
<tab id="response-tab"
crop="end"
label="&netmonitorUI.tab.response;"/>
<tab id="timings-tab"
crop="end"
label="&netmonitorUI.tab.timings;"/>
<tab id="security-tab"
crop="end"
label="&netmonitorUI.tab.security;"/>
<tab id="preview-tab"
crop="end"
label="&netmonitorUI.tab.preview;"/>
</tabs>
<tabpanels flex="1">