From b7a4cc3efe2233cbf978eed523d7eb0c82917a7f Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 7 Aug 2002 07:28:24 +0000 Subject: [PATCH] Sorta trying. --- browser/base/content/customizeToolbar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/base/content/customizeToolbar.js b/browser/base/content/customizeToolbar.js index a5f13fa7f2c..32e04508307 100644 --- a/browser/base/content/customizeToolbar.js +++ b/browser/base/content/customizeToolbar.js @@ -242,7 +242,7 @@ var toolbarDNDObserver = { if (!nextRow) { var last = currentRow.lastChild; var first = currentRow.firstChild; - if (firstChild == lastChild) { + if (first == last) { // Kill the row. currentRow.parentNode.removeChild(currentRow); return; @@ -252,6 +252,9 @@ var toolbarDNDObserver = { var flex = last.getAttribute("flex"); flex++; last.setAttribute("flex", flex); + // Reflow doesn't happen for some reason. Trigger it with a hide/show. ICK! -dwh + last.hidden = true; + last.hidden = false; return; } else {