I am using a scrollbar on a div and it appears to be having a rendering issue in IE10.
When you scroll the div all the way to the bottom, then back to top, the top content is missing.
Do you know if there is a solution for IE10?
Link: http://landpros.com/propsearch.php
Here is the CSS on the div:
.prop-search-content-wrapper{
margin: 0 0 30px 0;
padding: 0;
height: 980px;
overflow-x:hidden;
overflow:scroll;
}
Thank you!
For vertical scrollable bar use the x and y axis. Set the overflow-x:hidden; and overflow-y:auto; that will automatically hide the horizontal scroll bar and present only vertical scrollbar. Here the scroll div will be vertically scrollable.
The easy fix is to use width: 100% instead. Percentages don't include the width of the scrollbar, so will automatically fit. If you can't do that, or you're setting the width on another element, add overflow-x: hidden or overflow: hidden to the surrounding element to prevent the scrollbar.
To show the scrollbars always on the webpage, use overflow: scroll Property. It will add both horizontal and vertical scrollbars to the webpage. To add only horizontal scrollbar use overflow-x: scroll property and for vertical scrollbar use overflow-y: scroll property.
I did manage to reproduce this - to see the cause of the issue (I think) turn off the overflow-x: hidden
directive. If the content is missing it will come back and you will get a vertical scroll bar. Something is going on that is causing IE10 to think it needs to hide that whole top row(s).
The fix should be to readjust your widths of any content of the containing div with class content-wrapper
to match the parent and never need overflow-x: hidden;
in the first place.
*Note: I struggled to consistently reproduce.
I wasn't able to reproduce the problem with my IE 11 emulating IE 10 with the developer tools. But I agree with Matthew, that it is most probably caused by the overflow-x: hidden
setting.
You can easily avoid it!
Have a look at your foundation.css file (at line 233 and 235):
.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -10px; }
Beside the fact that the rule exists twice, your "trouble" arises from the negative left and right margins. You dont need them, so just remove them!
By doing so, there is no more need for the overflow-x: hidden
setting.
BTW: Why do you set the max-width
to none
, instead of 100%
, if you don't want an element to horizontally overflow its parent?
So please try it and let us know, if this fixes (avoids) your problem - thanks!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With