Changes between Initial Version and Version 1 of Ticket #6456, comment 1


Ignore:
Timestamp:
Mar 20, 2013, 4:10:39 PM (12 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6456, comment 1

    initial v1  
    11**The below code is only to show how hard this can be and that you shouldn't go that way**. The idea may seem simple calculate body width, then calculate element width and if one is larger than other insert new line. The main problem is with calculating current element width. If this is block element its width will be the same as body so width checks don't make any sense.[[BR]]
    2 Actually the only time they return correct result is when they have float style set. Another problem is when you insert one float div after another - no new line is visible - you have to insert clearing div first then floating div. Then you get all sort of range problems when you e.g. switch to source and back ...
     2Actually the only time they return correct result is when elements have float style set. Another problem is when you insert one float div after another - no new line is visible - you have to insert clearing div first then floating div. Then you get all sort of range problems when you e.g. switch to source and back ...
    33
    44**Taking the above into account and that it can work with float elements only this is a won't fix issue.**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy