You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Bill van Melle (Commented) (JIRA)" <ji...@apache.org> on 2011/10/19 01:53:10 UTC

[jira] [Commented] (PIVOT-803) ImageView placement is incorrect when nested inside two TablePanes

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

Bill van Melle commented on PIVOT-803:
--------------------------------------

I traced thru the code to see that, as Greg observed, the inner TablePane is computing the height of its row to be larger than the constrained height of the TablePane itself.

I should note that in my toy example, a workaround is to redundantly specify the height of the inner TablePane's first row to be the same as the height of the row the TablePane is in.  But for more complex layouts (i.e., where the outer row doesn't have a set height), I don't think there's something quite so simple to fix it.
                
> ImageView placement is incorrect when nested inside two TablePanes
> ------------------------------------------------------------------
>
>                 Key: PIVOT-803
>                 URL: https://issues.apache.org/jira/browse/PIVOT-803
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0, 2.0.1
>            Reporter: Bill van Melle
>            Priority: Minor
>         Attachments: test.zip
>
>
> If you have an ImageView nested two levels deep inside a TablePane, the image is aligned incorrectly.  I've seen cases that vary from no problem to the top coordinate being so large that the image doesn't display at all.  
> I wrote about this a long time ago (http://apache-pivot-users.399431.n3.nabble.com/ImageView-messes-up-nested-inside-two-TablePanes-td2514398.html) but apparently neglected to file a bug report.  At the time, Greg suggested that the layout code was passing the wrong height to the ImageView.
> I'll attach a test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira