When I use the CSS html, body { height:100%; overflow:hidden; }, the quill spills over the bottom of the page by the current height of the toolbar.
Steps for Reproduction
Expected behavior: Bottom of scroll bar visible Toolbar remains visible.
Actual behavior: Bottom of scroll bar is lost. Toolbar becomes lost.
Platforms: Tested on Windows 10 Chrome
Version: 1.2.0
.ql-editor has height:100% in the theme.
You can try giving it 100% - toolbar-height:
#editor {
height: calc(100% - 40px);
}
Nice, I didn't know about calc(). Extremely useful. Problem is if the container width is small, the buttons wrap, making the bar greater than 40px.
Three possible solutions I can see are:
For this you can use flexbox.
http://codepen.io/anon/pen/wgdXeM
I just got there myself. That's the ticket.
I just noticed that the toolbar still disappears when you type at the bottom of a long document.
http://codepen.io/MichaelMC/pen/NdjMyZ/
Looking at this, the top value changes to -42. What's doing that?
FYI In case anyone is wondering how to get 100% height of a flexbox container - the editor itself needs display: flex.
Most helpful comment
FYI In case anyone is wondering how to get 100% height of a flexbox container - the editor itself needs display: flex.
http://codepen.io/justinpincar/pen/gWdeRJ