Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8163175

PlainView.modelToView() method should return Rectangle2D

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:

      Description

      The text position can have floating point value on HiDPI display.

      The PlainView.modelToView() uses Utilities.getTabbedTextWidth(s, metrics, tabBase, this,p0) method to calculate the text width.

      It should be changed to the same method with floating point arguments introduced by the fix JDK-8156217 Selected text is shifted on HiDPI display and return Rectangle2D.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alexsch Alexandr Scherbatiy
              Reporter:
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: