Index: lib/main.js |
=================================================================== |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -52,32 +52,36 @@ var VerticalPreferencesLayout = |
{ |
__proto__: WindowFeature, |
windowUrl: "chrome://adblockplus/content/ui/filters.xul", |
_applyToWindow: function(window) |
{ |
let content = window.document.getElementById("content"); |
let splitter = window.document.getElementById("filtersSplitter"); |
- if (!content || !splitter) |
+ let tree = window.document.getElementById("filtersTree"); |
+ if (!content || !splitter || !tree) |
return; |
content.setAttribute("orient", "vertical"); |
splitter.setAttribute("orient", "vertical"); |
+ tree.setAttribute("minheight", "60px"); |
}, |
_removeFromWindow: function(window) |
{ |
let content = window.document.getElementById("content"); |
let splitter = window.document.getElementById("filtersSplitter"); |
- if (!content || !splitter) |
+ let tree = window.document.getElementById("filtersTree"); |
+ if (!content || !splitter || !tree) |
return; |
content.removeAttribute("orient"); |
splitter.setAttribute("orient", "horizontal"); |
+ tree.removeAttribute("minheight"); |
} |
}; |
var StylesheetFeature = |
{ |
uri: null, |
stylesheetService: Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService), |