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

JS Error when adding listheaders dynamically

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 7.0.4
    • 7.0.3
    • Components
    • Security Level: Jimmy
    • None

    Description

      click the button to add columns dynamically and a JS error will occur

      the error occurs in both cases
      <listbox span="true"
      <listbox span="false"

      without span the hflex="min" does not get calculated

      in ZK 6.5 this works and first calculates the column widths and then spans them over the whole table width

      <zk>
      
      	<button id="addListheaders" label="add list headers to cause JS error"/>
      
      	<listbox span="true" width="300px">
      		<listhead fulfill="addListheaders.onClick">
      			<listheader label="aaa" hflex="min"></listheader>
      			<listheader label="bbb" hflex="min"></listheader>
      			<listheader label="ccc" hflex="min"></listheader>
      		</listhead>
      		<listitem>
      			<listcell>Long Content</listcell>
      			<listcell>Shorter</listcell>
      			<listcell>tiny</listcell>
      		</listitem>
      	</listbox>
      </zk>
      

      Attachments

        Issue Links

          Activity

            People

              ChunfuChang ChunfuChang
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: