[view] tag entry should grow as-needed, but not shrink - fixes #1005
This commit is contained in:
@ -6,9 +6,15 @@ function joinUrlSegments(base, query) {
|
|||||||
return base + separatorChar + query;
|
return base + separatorChar + query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {HTMLElement} el
|
||||||
|
*/
|
||||||
function autosize(el) {
|
function autosize(el) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
el.style.cssText = 'height:' + el.scrollHeight + 'px';
|
if(el.offsetHeight < el.scrollHeight) {
|
||||||
|
el.style.height = el.scrollHeight + 'px';
|
||||||
|
el.style.width = el.offsetWidth + 'px';
|
||||||
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user