commit c0f3e3c425a3e30f49bc2b623feaacd570b1ad9d parent a439456f05db84ff9779e1cf780ddf6c5a803827 Author: Simon Kornblith <simon@simonster.com> Date: Thu, 23 May 2013 23:26:36 -0400 Fix box scrolling Diffstat:
| M | chrome/content/zotero/integration/quickFormat.js | | | 6 | ++---- |
| M | chrome/skin/default/zotero/integration.css | | | 3 | +++ |
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -730,12 +730,10 @@ var Zotero_QuickFormat = new function () { } } - var qfeHeight = qfe.scrollHeight; - - if(qfeHeight > 30) { + if(qfe.scrollHeight > 30) { qfe.setAttribute("multiline", true); qfs.setAttribute("multiline", true); - qfs.style.height = (4+qfeHeight)+"px"; + qfs.style.height = (4+qfe.scrollHeight)+"px"; window.sizeToContent(); } else { delete qfs.style.height; diff --git a/chrome/skin/default/zotero/integration.css b/chrome/skin/default/zotero/integration.css @@ -114,6 +114,9 @@ border-color: #a8c0ec; padding: 0 6px 0 6px; margin: -1px 2px 0 2px; + display: inline-block; + white-space: nowrap; + line-height: normal; -moz-user-select: all; }