From: Michael M Slusarz Date: Tue, 3 Aug 2010 01:56:13 +0000 (-0600) Subject: Fix resizing compose window in dimp. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d94b500da8ca160b44becc3dcd9c922c80c11f6a;p=horde.git 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. --- 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); } } },