Fix compose window resize.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 30 Oct 2009 21:16:58 +0000 (15:16 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 30 Oct 2009 21:16:58 +0000 (15:16 -0600)
imp/js/compose.js

index c8a1339..47c4734 100644 (file)
@@ -396,7 +396,7 @@ var ImpCompose = {
             if (!e) {
                 return this.resize.bind(this).defer();
             }
-            d = Math.min(e.getHeight(), screen.height - 100) - document.viewport.getHeight();
+            d = Math.min(e, screen.height - 100) - document.viewport.getHeight();
             if (d > 0) {
                 window.resizeBy(0, d);
             }