Fix resizing compose window in dimp.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 01:56:13 +0000 (19:56 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 01:56:13 +0000 (19:56 -0600)
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

index d9296a1..7b5f9b0 100644 (file)
@@ -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);
             }
         }
     },