ICEfaces
  1. ICEfaces
  2. ICE-9540

ace:datatable > Custom Width Not Respected When Using Cell Editing

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3
    • Fix Version/s: EE-3.3.0.GA_P02, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces3 trunk revision# 37274
    • Assignee Priority:
      P3

      Description

      Custom width that is set using the style attribute is not being respected when using the cell editing feature. Cell editing causes the table to expand larger than specified in the style attribute.

      Test application is located at: iceads1/Public/QA/JIRAs/ICE-9540.war
      1. ice9540.html
        2 kB
        Arturo Zambrano

        Activity

        Cruz Miraback created issue -
        Cruz Miraback made changes -
        Field Original Value New Value
        Description Custom width that is set using the style attribute is not being respected when using the cell editing feature. Cell editing causes the table to expand larger than specified in the style attribute.

        Attached a simple test case to show the issue.
        Custom width that is set using the style attribute is not being respected when using the cell editing feature. Cell editing causes the table to expand larger than specified in the style attribute.

        Test application is located at: iceads1/Public/QA/JIRAs/ICE-9540.war
        Ken Fyten made changes -
        Assignee Nils Lundquist [ nils.lundquist ]
        Fix Version/s 3.4 [ 10770 ]
        Affects Version/s 3.3 [ 10370 ]
        Affects Version/s 3.4 [ 10770 ]
        Ken Fyten made changes -
        Assignee Nils Lundquist [ nils.lundquist ] Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Assignee Priority P3 [ 10012 ]
        Hide
        Carmen Cristurean added a comment -

        This is still an issue with IF4 trunk rev# 39869.

        Show
        Carmen Cristurean added a comment - This is still an issue with IF4 trunk rev# 39869.
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Fix Version/s 4.0.BETA [ 10770 ]
        Hide
        Arturo Zambrano added a comment -

        This is a general situation with HTML tables. Tables automatically expand to fit in the contents, without regard for the 'width' setting in the 'style' attribute, either that of the table itself or that of a parent container. As it can be seen in the attached plain-HTML test case (ice9540.html), this same behaviour can be replicated in a plain-HTML table.

        One option is to use the 'table-layout:fixed;' property to prevent the table from expanding. However, all columns will have the same width. Besides this, it would be necessary to set 'overflow:hidden;' for all the table cells, so that the extra contents aren't displayed, as illustrated in the second table of the same plain-HTML test.

        Another option for ace:dataTable, since the root container is a div, is to also set 'overflow:auto;' in the same 'style' attribute, so that when the table expands, the width of the root container stays the same and a scroll bar appears to see the rest of the table.

        It comes down to the application developer preference for a particular table: either to let it expand and be able to scroll it or don't let it expand and hide all extra content. There's nothing else that can be done.

        Show
        Arturo Zambrano added a comment - This is a general situation with HTML tables. Tables automatically expand to fit in the contents, without regard for the 'width' setting in the 'style' attribute, either that of the table itself or that of a parent container. As it can be seen in the attached plain-HTML test case (ice9540.html), this same behaviour can be replicated in a plain-HTML table. One option is to use the 'table-layout:fixed;' property to prevent the table from expanding. However, all columns will have the same width. Besides this, it would be necessary to set 'overflow:hidden;' for all the table cells, so that the extra contents aren't displayed, as illustrated in the second table of the same plain-HTML test. Another option for ace:dataTable, since the root container is a div, is to also set 'overflow:auto;' in the same 'style' attribute, so that when the table expands, the width of the root container stays the same and a scroll bar appears to see the rest of the table. It comes down to the application developer preference for a particular table: either to let it expand and be able to scroll it or don't let it expand and hide all extra content. There's nothing else that can be done.
        Arturo Zambrano made changes -
        Attachment ice9540.html [ 17110 ]
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Cruz Miraback
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: