Chrome bug: iframe rendering lines on screen when scrolling up

前端 未结 7 1471
深忆病人
深忆病人 2021-01-05 16:28

bug here: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-bugs/eUfzp3UJDwo%5B1-25%5D

just encountered this problem, streaking up my screen

7条回答
  •  难免孤独
    2021-01-05 17:00

    After one full day trying to solve this bug I can confirm that there's another workaround and it's probably an "easier" one.

    In my case these solutions didn't work. In fact, applying them to the examples in the issue tracker of chrome (look for them here http://code.google.com/p/chromium/issues/detail?id=143354 ) didn't actually solve the problem. (PS: the problem is usually based on using the scrollbar and SOMETIMES in using the mouse scrolling).

    Therefore I did some searches for services the worked and guess what:
    Visual Website optimizer didn't have this problem
    and they are indeed using and iframe, good job guys!

    So, what solution did they use?
    They used a fixed height. (yup!)

    So, take the example in the chrome issue 143354 (the one with the red background, ok?) and change the code from

    
    
    

    This is outside the iframe

    to

    
    
    

    This is outside the iframe

    This will solve the problem of red lines.

    To fix my webapp I needed to calculate the height on every window resize, put those margin/padding , and avoiding relative positioning on the iframe, nothing more.

    Hope it helped (It almost drew me out of my mind to solve it)

提交回复
热议问题