changeset 314:53437e167bd1

use an HTML div instead of a XUL vbox as the group box in the river view, since Gecko can break divs across columns, which it cannot do with vboxes
author Myk Melez <myk@mozilla.org>
date Thu, 09 Oct 2008 14:54:00 -0700
parents 7dbc8df71d14
children f577b8a8bb40
files content/river.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/content/river.js	Thu Oct 09 14:18:16 2008 -0700
+++ b/content/river.js	Thu Oct 09 14:54:00 2008 -0700
@@ -215,6 +215,7 @@
     // in the calculation.  Perhap we should instead wait to resize
     // the content box until the content actually overflows horizontally.
     // XXX Why do I have to subtract *double* the width of the scrollbar???
+    // Maybe it's because of the 7px padding all around the contentBox?
     this.contentHeight =
       window.innerHeight - (this.scrollbarWidth*2) - toolbarHeight;
   },
@@ -594,7 +595,7 @@
         header.addEventListener("command", listener, false);
         contentBox.appendChild(header);
 
-        let container = this._document.createElementNS(XUL_NS, "vbox");
+        let container = this._document.createElementNS(HTML_NS, "div");
         container.className = "groupBox";
         contentBox.appendChild(container);