Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrollbar overlaps content on IE/Edge

I would like to have an horizontal scrollbar and no vertical scroll on a root container and vertical scrollbar on sub-containers and no horizontal scrollbar. Compatibility needed : IE, Edge, Chrome, FF. (Latest versions)

<rootcontainer> => horizontal scroll
 <subcontainer1> => vertical scroll
  <data></data>
 </subcontainer1>
 <subcontainer2> => vertical scroll
   <data></data>
 </subcontainer2>
</rootcontainer>

No problem with the scroll on Chrome and FF, but on IE11 and Edge, the scroll of the root container is overlapping with the content of the sub container.

Note: each subcontainer must have a width equals to 50% of the subcontainer.

Here is my problem in a fiddle.

What did I missed to make it work ?

EDIT :

Windows 10 Edge Win10 Edge

Windows 10 IE W

Please note that on IE11, the borders are not visibles. The bug is more visible on Edge

like image 900
Zysce Avatar asked Nov 29 '17 14:11

Zysce


People also ask

How do I change the scroll bar in edge?

To open this setting, press the Windows + R shortcut on your keyboard and then type the following command in the Run dialog and hit Enter . Scroll down and look for the 'Automatically hide the scroll bars in Windows' toggle under 'Simplify and personalize Windows' heading. Make sure that it is toggled On.

What is overlay scroll bar?

OverlayScrollbars is a javascript scrollbar plugin that hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.

How do I restore the scroll bar in Internet Explorer?

Go to Settings / Ease of Access / Display and turn off Automatically hide scroll bars in Windows.


1 Answers

Are you using windows 8+? Can post a screenshot of the issue?

(I'm using IE11 and Windows 7 and it looks fine)

There is an issue (or design feature, depending on how you look at it) with IE10+ on Windows 8+ where the scrollbar overlays the content. Try the following and let me know if it fixes your problem.

.document,
.meta,
.viewer,
.other-doc {
    -ms-overflow-style: scrollbar;
}

Check out https://msdn.microsoft.com/en-us/library/mt712067(v=vs.85).aspx

like image 180
itodd Avatar answered Sep 29 '22 03:09

itodd