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

JS Error when adding listheaders dynamically

XMLWordPrintable

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

      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>
      

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

              Created:
              Updated:
              Resolved: