Details
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
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
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19949 | Thu Dec 10 15:45:41 MST 2009 | judy.guglielmin | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/panelpopup/PanelPopup.java
MODIFY /icefaces/scratchpads/glimmer/compat/component-metadata/src/main/resources/conf/ice_cust_properties/cust-panelpopup-props.xml MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/META-INF/resources/ice-extras.js MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/outputconnectionstatus/OutputConnectionStatusRenderer.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19578 | Mon Nov 02 14:24:44 MST 2009 | yip.ng | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19148 | Mon Aug 10 16:30:58 MDT 2009 | yip.ng | Fixed popup appearing too wide in IE. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19091 | Mon Jul 20 15:47:13 MDT 2009 | yip.ng | Changed to allow width of modal popup to be dynamic based on the width of the contents. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19058 | Tue Jul 14 13:33:09 MDT 2009 | yip.ng | Changed to allow width of modal popup to be dynamic based on the width of the contents. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java
|