Author: estherbin
Date: 2008-07-30 08:59:36 -0400 (Wed, 30 Jul 2008)
New Revision: 9430
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplate.java
Log:
Complete JBIDE-2430
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplate.java 2008-07-30
12:34:27 UTC (rev 9429)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesComboBoxTemplate.java 2008-07-30
12:59:36 UTC (rev 9430)
@@ -182,7 +182,10 @@
final Element source = (Element) sourceNode;
prepareData(source);
- // final nsIDOMElement rootDiv =
visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ final nsIDOMElement rootDiv =
visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+
+ //Fix
https://jira.jboss.org/jira/browse/JBIDE-2430 issue with resizement.
+ rootDiv.setAttribute("style", "width : "+sourceWidth);
final nsIDOMElement secondDiv =
visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
secondDiv.setAttribute("align", this.sourceAlign);
secondDiv.setAttribute(HTML.ATTR_CLASS,
styleClasess.get("secondDiv"));
@@ -247,7 +250,7 @@
+ calculateWithForDiv(this.sourceWidth, 10));
forthEmptyDiv.appendChild(visualDocument.createTextNode("Struts"));
- // rootDiv.appendChild(secondDiv);
+ rootDiv.appendChild(secondDiv);
secondDiv.appendChild(thirdDiv);
if (isToggle) {
@@ -258,7 +261,7 @@
thirdDiv.appendChild(thirdInput);
thirdDiv.appendChild(forthEmptyDiv);
- final VpeCreationData creationData = new VpeCreationData(secondDiv);
+ final VpeCreationData creationData = new VpeCreationData(rootDiv);
// final DOMTreeDumper dumper = new DOMTreeDumper();
// dumper.dumpToStream(System.err, secondDiv);