From d94b500da8ca160b44becc3dcd9c922c80c11f6a Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 2 Aug 2010 19:56:13 -0600 Subject: [PATCH] Fix resizing compose window in dimp. Some non-FF browsers (opera, Safari on win, IE) don't consider negative values to be a false-y value. --- imp/js/compose-dimp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index d9296a191..7b5f9b08f 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -715,7 +715,7 @@ var DimpCompose = { ++rows; do { msg.writeAttribute({ rows: rows--, disabled: false }); - } while (de.scrollHeight - de.clientHeight); + } while ((de.scrollHeight - de.clientHeight) > 0); } } }, -- 2.11.0