ICEfaces
  1. ICEfaces
  2. ICE-4700

Modal popup with auto resizable width

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Icefaces 1.8.1 from trunk

      Description

      In current modal popup resizable attribute probably not works.
      Also popup width must be defined because this component can't auto resize own width.

      In attachment is an easy solution tested on IE6/7/8 & FF2/3.
      Now width attribute for popup is not neccesary. Modal width is based on it's content.
      It is very usable for message boxes with variable length user messages .

      Patch of PanelPopupRenderer.java

      131 table.setAttribute(HTML.CELLSPACING_ATTR, "0");
      132> table.setAttribute(HTML.WIDTH_ATTR, "100%");
      < // table.setAttribute(HTML.WIDTH_ATTR, "100%"); delete global 100% width
      133 rootDiv.appendChild(table);

      187 headerTd.setAttribute(HTML.ID_ATTR, handleId);
      < headerTd.setAttribute(HTML.STYLE_ATTR, "width:100%;"); // add 100% to header
      188 headerTr.appendChild(headerTd);
      Element headerTdSpacer = domContext.createElement(HTML.TD_ELEM);
      Element headerDiv = domContext.createElement("div");
      < headerDiv.setAttribute(HTML.STYLE_ATTR, "width:1px;"); //create spacer extension to change table mode
      < headerDiv.setAttribute("class", "icePnlPopHdr");
      < headerTdSpacer.appendChild(headerDiv);
      < headerTr.appendChild(headerTdSpacer);
      189 // add header facet to header tr and add to table
      1. PanelPopupRenderer.java
        16 kB
        Krashan Brahmanjara
      1. ScreenHunter_01.jpg
        219 kB
      2. ScreenHunter_02.jpg
        230 kB
      3. ScreenHunter_03.jpg
        139 kB

        Activity

        Krashan Brahmanjara created issue -
        Krashan Brahmanjara made changes -
        Field Original Value New Value
        Attachment PanelPopupRenderer.java [ 11839 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.2 [ 10190 ]
        Assignee Priority P3
        Assignee Yip Ng [ yip.ng ]
        yip.ng made changes -
        Attachment ScreenHunter_01.jpg [ 11845 ]
        Attachment ScreenHunter_02.jpg [ 11846 ]
        yip.ng made changes -
        Attachment ScreenHunter_03.jpg [ 11847 ]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        yip.ng made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        yip.ng made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-RC1 [ 10210 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P3

          People

          • Assignee:
            yip.ng
            Reporter:
            Krashan Brahmanjara
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: