From 054bf83480a8c9f1a33c25cff8a4831925c792fb Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Wed, 7 Aug 2002 05:27:24 +0000 Subject: [PATCH] Comment and clean up the code. Readd flex/width when moving the item back to the palette to ensure proper spacing. git-svn-id: svn://10.0.0.236/trunk@126612 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/customizeToolbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/browser/base/content/customizeToolbar.js b/mozilla/browser/base/content/customizeToolbar.js index 71e43d8b300..56f3f8b5c2e 100644 --- a/mozilla/browser/base/content/customizeToolbar.js +++ b/mozilla/browser/base/content/customizeToolbar.js @@ -251,7 +251,9 @@ var paletteDNDObserver = { } toolbarItem = toolbarItem.nextSibling; } - + if (!item) + return; + // We're going back in the palette now, so we have to readd the flex // and width which we removed when moving the item to the toolbar. // (These attributes help space the items properly in the palette.)