<Swing Dev> Background is painted taller than needed for superscripted text
Alexandr Scherbatiy
alexandr.scherbatiy at oracle.com
Thu Jun 9 15:36:04 UTC 2016
On 6/8/2016 2:30 PM, Prem Balakrishnan wrote:
>
> Hi,
>
> Please review fix for JDK9,
>
> *Bug:* https://bugs.openjdk.java.net/browse/JDK-8017266
>
> *Webrev:* http://cr.openjdk.java.net/~pkbalakr/8017266/webrev.00/
> <http://cr.openjdk.java.net/%7Epkbalakr/8017266/webrev.00/>
>
> *Issue:*
>
> Background is painted taller than needed for superscripted text.
>
> *Cause:*
>
> Bounds(alloc.height) is used to set the height to fill the actual
> glyphs boundary
>
Why passed shape height is larger that the required superscripted
text height?
Thanks,
Alexandr.
>
> *Fix:*
>
> Used painter.getHeight() instead of alloc.height to fill the actual
> glyphs boundary
>
> Thanks,
>
> Prem
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160609/c99a8157/attachment.html>
More information about the swing-dev
mailing list