Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11513

QTextBrowser layout breaks in presense of "float: right" style in table

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 4.8.x
    • 4.6.2
    • None
    • Linux hansu 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux
      NokiaQtSDK RC1

      I've observed the same problem in Symbian phones, in another application though.

    Description

      float: right; style in tables occasionally causes html layout to break and overlapping text appears.

      I've attached a screenshot and an animation to illustrate the problem.
      A full test case is also provided. The html in test case is probably not minimal to illustrate the problem, but fairly small.

      To reproduce:

      cp problem.html /tmp

      Compile and run application.

      Resize window to smaller, at some point the QTextBrowser layout breaks
      and text gets overlapped.

      If you remove the "float: right;" style from the first table, the
      layout never breaks. But obviously the table won't float either...

      There seems to be some race condition or other asynchronous business
      going on, because sometimes I got the broken layout immediately
      without resizing, and at times it was ok.

      Attachments

        1. animbug.ogv
          764 kB
        2. corrupted.png
          corrupted.png
          44 kB
        3. QtTBLayoutBug.tgz
          18 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            grego Harri Pasanen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes