[
https://issues.apache.org/jira/browse/TOBAGO-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923704#comment-13923704
]
Udo Schnurpfeil commented on TOBAGO-1372:
-----------------------------------------
Hi Bernhard,
I think the problem is, that the height of the 2 (or n) rows can't be computed.
In the example you have 2 rows, both with height: "auto". In the rows is only a
sheet with rowSpan=2.
The algorithm now tries to evaluate a good value for the both "auto" heights.
For that it looks in the row for all cells with rowSpan=1, but there is no, so
it can't be computed.
Why do you use the rowSpan=2? In the exemple it is not needed. But I assume,
your real application is more complex.
When you add a 2nd column with elements of defined height it should work.
> tc:sheet with rowSpan in "auto" row gets 0 height
> -------------------------------------------------
>
> Key: TOBAGO-1372
> URL: https://issues.apache.org/jira/browse/TOBAGO-1372
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-3
> Environment: JSF 2.0.1.1 / Servlet 3.0.1 / Jetty
> Reporter: Bernhard Stadler
> Attachments: Sheet in panel with rowSpan=2.jpg, Sheet with
> rowSpan=2.jpg, tobago-sheet-panel-rowSpan-bug.xhtml,
> tobago-sheet-rowSpan-bug.xhtml
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> I have a tobago page having a grid layout with "auto" rows and "*" columns.
> When I put a tc:sheet with a rowSpan >= 2 on it, the table doesn't get
> rendered. Without rowSpan, this works nicely.
> When I try removing the rowSpan from tc:sheet and putting the sheet inside a
> panel with rowSpan >= 2, the sheet does get rendered, but subsequent elements
> overlap the table as if it had height = 0px.
> The only workaround I found is giving the sheet rowSpan=1 (instead of n >= 2)
> and adding a panel with rowSpan=n-1. (However, this doesn't work too well for
> my use case).
> I'll attach examples for both cases.
--
This message was sent by Atlassian JIRA
(v6.2#6252)