Fix box scrolling

This commit is contained in:
Simon Kornblith 2013-05-23 23:26:36 -04:00
parent a439456f05
commit c0f3e3c425
2 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}