I have an absolutely positioned div
, with overflow:auto
.
When it overflows vertically, a vertical scrollbar appears. This appears within my div
(even though it isn't fixed width), which shrinks the space available to the div's contents. In my case, it causes the text to wrap unnecessarily, which is undesirable.
See https://jsfiddle.net/hktgcrj0/ - shrink the page until the div
overflows and the scroll bar appears - you will see the text wrap.
Is there any way to make the scrollbar appear outside of the div
, or increase the width of the div
to accommodate the scroll bar?
Note that for my application (the fiddle is massively simplified) giving the div a fixed width is not an option, and disabling text wrapping is also not an option.