In Firefox, an unwanted x-scrollbar is appearing.
Even when attempting to disable it using overflow-x: hidden;
, the width remains incorrect (strings are still hidden).
.wrapper {
position: absolute;
}
.left {
height: 150px;
display: inline-block;
position: relative;
overflow: auto;
}
.left > div {
white-space: nowrap;
padding-left: 20px;
}
Chrome View:
https://i.sstatic.net/y6oDl.jpg
Firefox View:
https://i.sstatic.net/MHUGC.jpg
Any ideas why this might be happening?
Feel free to experiment with the code on this jsfiddle: https://jsfiddle.net/5yqkoujm/