diff --git a/xpfe/browser/resources/content/contentframe.js b/xpfe/browser/resources/content/contentframe.js index ab1b218a9ac..1e6beecf3c1 100644 --- a/xpfe/browser/resources/content/contentframe.js +++ b/xpfe/browser/resources/content/contentframe.js @@ -44,7 +44,7 @@ function toggle_open_close() { if (is_sidebar_open) { // Close it - sidebar.setAttribute('style','width: 0px'); + sidebar.setAttribute('style','visibility: hidden; width: 1px'); sidebar.setAttribute('src','about:blank'); grippy.setAttribute('open',''); @@ -53,8 +53,9 @@ function toggle_open_close() { } else { - // Open it - sidebar.setAttribute('style', 'width:' + sidebar_width + 'px'); + dump("Open it\n"); + + sidebar.setAttribute('style', 'visibility: visible;width:' + sidebar_width + 'px'); sidebar.setAttribute('src', sidebar_uri); grippy.setAttribute('open','true');