[ 
https://issues.apache.org/jira/browse/TRINIDAD-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729637#action_12729637
 ] 

Cedric Durmont commented on TRINIDAD-1107:
------------------------------------------

The source code ( DesktopTableRenderer.java ) mentions an undocumented 'height' 
attribute.
What is intriguing is that it looks like this attribute triggers portions of 
code that make the table scrollable, including the use of thead/tbody and 
numerous IE-centric hacks.
Maybe there's a good reason why this is a hidden/disabled feature, but 
otherwise it could be a nice addition to Trinidad, with minimum effort :o)

I'm fairly sure this is too good to be true, but maybe someone could check it, 
just to be sure...

Chosen extracts from DesktopTableRenderer.java :

  protected void findTypeConstants(FacesBean.Type type)
    [...]
    _heightKey  = type.findKey("height");
   [...]


   protected void renderTableContent(...)
   [...]
       if ((height != null) && isIE(arc))
    {
      [...]
      writer.startElement("div", null);
      // IE in standards compliant mode needs the "width:100%" for the vertical
      // scroll bars to appear:
      writer.writeAttribute("style", 
"overflow:auto;overflow-x:hidden;width:100%;height:"+height, null);
   [...]



> tr:table - scrolling of content
> -------------------------------
>
>                 Key: TRINIDAD-1107
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1107
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Gerhard Petracek
>
> if a table is too long and it comes to page scrollbars, you cannot see the 
> header all the time (e.g. after scrolling to the bottom of the table).
> so we need a scrollbar for the table body.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to