-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix reported scrollbar issues #4632
Conversation
Pretty much IE 11 is not in the list, yet. |
@bennothommo @w20k @LukeTowers @daftspunk Thanks for your comments, looking at caniuse: https://www.caniuse.com/#feat=mdn-css_properties_position_sticky Only IE11 seems to be the issue, so let's polyfill Going to add a polyfill into the Let me know your thoughts and any adjustments. p.s. The polyfill will use ES5 to allow old browsers and support for IE9 - IE11 etc has been tested. p.s. IE11 end of service life is on January 14, 2020. |
@ayumihamasaki2019 Just to note, January 14, 2020 is the EOL for IE 10, not IE 11. Internet Explorer 11 is being supported for the lifecycle of Windows 7 SP1, Windows 8.1 and Windows 10. See here for more info: https://support.microsoft.com/en-us/help/17454/lifecycle-faq-internet-explorer Given this, we still have to support IE 11 for now. |
If think IE11 issues could fixed with a simple |
@bennothommo thanks for the link @w20k I tested your suggestion no good, see here: Above: using |
Simple fix will to change height: 100%; to something else because thats why it does that infinite scroll. |
Doesn't work! |
For me it works when i change it to 100vh :D And i think this is issue because parent element is too 100% height. (Looking trough it everything is table, that can be issue why is everything height 100% 😄 ) |
@bennothommo @w20k @LukeTowers Ok I have finished the update. What I have done is the following solution: All modern browsers will use: Internet Explorer uses a hack and will use: Have tested it and all working in IE11, Safari, Opera, Chrome V79, Firefox V71 |
@w20k @bennothommo @Samuell1 @LukeTowers If anyone got any free time, I would be greatful if you could test this pull request and add the label Thanks in advance. |
I have tested these changes in Chrome 77 and I still get the same problem. Using Canary (Chrome 79) the media manager works perfectly well with or without these changes. |
I'm going to kill two birds with one stone in this comment ... Part 1
Let me guess you only tested Google Chrome and not any other browser! This Pull Request fixes cross browser issues - see my below comment with a Firefox example. Part 2As per this conversation: I feel you're not listening to what I'm trying to tell you - to help you out! Please look at the bottom Firefox example demoing the Without this PR (In Firefox V71)You will see with preview it works! Without preview it doesn't work! With this PR (In Firefox V71)You will see with preview it works! Without preview it works! What did I do?The issue in the media manager is the Adding the following to the media manager section fixes the ConclusionTherefore the fix is very simple to understand, add the code I showed in the above picture and also restrict the Hopefully now you can understand what I'm talking about. |
@ayumihamasaki2019 My mistake - I wrongly assumed this was a fix for the issue with the current stable release of Chrome. Sorry, and appreciate your work. |
@roojai no worries, dont worry about it. If you come across any issues with the scrollbar let me know and I will be happy to add any extra fixes to this pr. |
Should be fixed in the latest chrome build v78. |
In this comment: #4632 (comment) I demo the error in Firefox V71 and you write: "Should be fixed in the latest chrome build v78." What the heck! You can't do like that. |
@ayumi-cloud please submit another issue if this is still a problem. Given that the original account was deleted I'd prefer this issue was started over. |
@ayumi-cloud please could you try to re-read the comments from all the tickets related to this flickering, before posting Nor I, nor @bennothommo could not reproduce the same behavior you had with Firefox. I've tried it with the latest and canary (Dev Nightly). The only thing I had and knew how to reproduce was flickering in MediaManager (#4601) and no one reported issues related to FF if I recall correctly. |
This occurs due to a race condition in the rendering where the scrollbars enable and disable over and over because of a slow height calculation. Giving any height number appears to close the loop by never letting the height resolve to 0 Refs #4632
Actually, I'm speaking with daftspunk in private and we both can reproduce this error! See video of the error here: https://youtu.be/Rlq9R3WIDfQ Commit to fix it: 1e449c8 |
Awesome, thanks for following up with this @ayumi-cloud! |
Tested on two locations
CMS web page issue
See results:
(Tested on Chrome V79 and Firefox 71)
Notes: The issue was the
position
usingabsolute
and notsticky
, which caused a forever scrolling action.Position: sticky
has fixed this issue.Media manager web page issue
See results:
(Tested on Chrome V79 and Firefox 71)
Notes: The issue here was because the scrollbar javascript in the media manager needs to have the right sidebar displayed and the css was using
display: none
, switching it over toopacity: 0
allows the javascript to scroll the container. If you set thedisplay
tonone
you will see thedata-visible
attribute keep trying to set it totrue
and the screen starts flickering! The right sidebar in the media manager is the place where the media file previews are displayed.Conclusion
I have done three main tests here: