css - JQuery UI: resizable div with scrollbar -


i made resizable div , want scrollbar (y-axis) when user resized much. when there enough space rows of text, scrollbar should disappear. thought done overflow-y: auto didn't.

what should like enter image description here

what looks like

https://jsfiddle.net/1wk4mevo/4/

as can see, there scrollbar if there enough space content in div. how can fix this? (code can seen in fiddle)

change css handle. if drop height 7px 0px scrollbar goes away. element within box, 'extra' height causing scrollbar appear @ times.

so, tried removing bottom:-5px; see below new fiddle.

https://jsfiddle.net/1wk4mevo/8/

overriding css works:

.ui-resizable-s {     bottom:0px;    } 

and produces result you're looking for.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -