Changes between Initial Version and Version 1 of Ticket #8587, comment 8


Ignore:
Timestamp:
Mar 31, 2014, 8:06:10 AM (10 years ago)
Author:
Piotrek Koszuliński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8587, comment 8

    initial v1  
    77I guess that we don't use `position:fixed` for historical reasons. Now perhaps we could do that, because it would simplify the code a lot and perhaps made it faster.
    88
    9 Perhaps, because `position:fixed` is known for causing problems. And because I wasn't able to reproduce the issue. I attached [[attachment:8587.html]] with CKEditor nested in 60 positioned divs. The only delay I see is on leaving maximize and it's caused by too heavy styling of the divs (border-radius and box-shadow) which affects entire page performance (e.g. scrolling in editor). This delay does not happen on [[attachment:8587_2.html]] which has lighter styling. Of course, the delay would be lower if browser wouldn't have to rerender all those divs when leaving maximize, but in most cases it will have to do that anyway, because maximize needs to override `<html>` styles in order to get rid of scroll.
     9Perhaps, because `position:fixed` is known for causing problems. And because I wasn't able to reproduce the issue. I attached [[attachment:8587_heavy.html]] with CKEditor nested in 60 positioned divs. The only delay I see is on leaving maximize and it's caused by too heavy styling of the divs (border-radius and box-shadow) which affects entire page performance (e.g. scrolling in editor). This delay does not happen on [[attachment:8587_light.html]] which has lighter styling. Of course, the delay would be lower if browser wouldn't have to rerender all those divs when leaving maximize, but in most cases it will have to do that anyway, because maximize needs to override `<html>` styles in order to get rid of scroll.
    1010
    1111So, the situation is not so straightforward - changing the maximize behaviour perhaps makes sense because it may be beneficial, but that needs tests. I opened #11745.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy