Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-794

width property of combobox when reload macrocomponent with setMacroURI method (Chrome)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 6.0.3
    • 5.0.10
    • Components
    • zk 5.0.8 or 5.0.10, chrome browser

    • None

      We are currently using zk 5.0.7, but in chrome browser when update the zk version to 5.0.8 or 5.0.10 i have a problem: When put a combobox inside to a macro component, the width property of combobox does not work until I open the component. This happens only when change the source uri with setMacroURI method of the macro component, the new source has the combobox but does not take the width property, only take it after of open the items. The sources are:

      ------ index.zul -----
      <zk>
      <div id="container">
      <macroComponent id="macroComponent" />
      </div>

      <button label="change source">
      <attribute name="onClick">
      HtmlMacroComponent macro =((HtmlMacroComponent) container.getFirstChild());
      macro.setMacroURI("macro_component_with_combo.zul");
      </attribute>
      </button>
      </zk>

      ----- macro_component_with_combo.zul ------

      <zk>
      <div>
      <combobox width="40px;"
      id="comboMonths" >
      <comboitem label="label1"/>
      <comboitem label="label2"/>
      </combobox>
      </div>
      </zk>

      thanks.

            Hudson Hudson (Inactive)
            jorgcarr jorgcarr
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: