You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Lee Whitcomb (Jira)" <ji...@apache.org> on 2021/03/18 16:15:00 UTC

[jira] [Commented] (PIVOT-1054) Large Border font sizes cause the text to cut off at the top

    [ https://issues.apache.org/jira/browse/PIVOT-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304251#comment-17304251 ] 

Roger Lee Whitcomb commented on PIVOT-1054:
-------------------------------------------

The problem was not quite what I thought -- the real problem was that the topThickness/titleAscent calculation was only being done when the title text changed, but not when the font changed, nor when the thickness changed (and the calculation depends on all three values).  Do the calculation every place it is needed and problem is solved.

> Large Border font sizes cause the text to cut off at the top
> ------------------------------------------------------------
>
>                 Key: PIVOT-1054
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1054
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>            Reporter: Roger Lee Whitcomb
>            Assignee: Roger Lee Whitcomb
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: border_font_problem_18.png, border_font_problem_24.png
>
>
> For instance, setting the Border "font" style to a size of 16 starts to cut off the top of the text.  This is because the sizing methods do not take font height into account when calculating the size of the component.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)