Fix bug with scroll bars and wrapping content
This commit is contained in:
parent
d77d8d7f39
commit
d67ea3f498
|
@ -44,6 +44,8 @@
|
|||
function updateBoxHeight(box) {
|
||||
//style.height doesn't include padding, .scrollHeight does
|
||||
box.style.height = "auto";
|
||||
// Set overflow hidden to ensure scrollbars aren't shown, since they change the width and thus the height
|
||||
box.style.overflow = "hidden";
|
||||
box.style.height = box.scrollHeight + "px";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue