You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Henning Nöth (Jira)" <de...@myfaces.apache.org> on 2022/09/21 13:17:00 UTC

[jira] [Resolved] (TOBAGO-2147) Image is not shown in sheet

     [ https://issues.apache.org/jira/browse/TOBAGO-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Nöth resolved TOBAGO-2147.
----------------------------------
    Resolution: Won't Fix

Just don't wrap tc:image with tc:panel...

> Image is not shown in sheet
> ---------------------------
>
>                 Key: TOBAGO-2147
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-2147
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.0
>            Reporter: Henning Nöth
>            Priority: Minor
>
> A tc:image is not shown in a sheet column if the image is wrapped within a tc:panel AND the sheet is in a gridLayout with row="1*". If *row* is set to {*}auto{*}, everthing works fine.
> {code:xml}
> <f:view ...>
>   <tc:page>
>     <f:facet name="layout">
>       <tc:gridLayout rows="1*"/>
>     </f:facet>
>     <tc:sheet ...>
>       ...
>       <tc:column>
>         <tc:panel>
>           <tc:image value="image.png" width="16px" height="16px"/>
>         </tc:panel>
>       </tc:column>
>       ...
>     </tc:sheet>
>   </tc:page>
> </f:view>
> {code}
> The panel is rendered with CSS "position: relative" and without a height set. The image has CSS "position: absolute". This leads to a panel with zero height.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)