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

Listcell width failed when some listheader set visible is false in IE7 only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.10
    • 5.0.7, 5.0.8, 5.0.9
    • Components
    • Security Level: Jimmy
    • only affect in IE 7 and IE compatibility view in IE7

      The width failed when some listheader is invisible.

      <zk>
      	<zscript><![CDATA[
      		class Data {
      			Data(String c1, String c2, String c3, String c4) {
      				this.c1 = c1;
      				this.c2 = c2;
      				this.c3 = c3;
      				this.c4 = c4;
      			}
      			String c1;
      			String c2;
      			String c3;
      			String c4;
      		}
      		Data[] datas = new Data[]{
      				new Data("c1","c2","c3","c4"),
      				new Data("c1","c2","c3","c4"),
      				new Data("c1","c2","c3","c4"),
      				new Data("c1","c2","c3","c4"),
      				new Data("c1","c2","c3","c4"),
      				new Data("c1","c2","c3","c4"),
      			};
      		List list = Arrays.asList(datas);
      		ListModelList model = new ListModelList(list);
      		class DataRenderer implements ListitemRenderer {
      			public void render(Listitem item, Object data) throws Exception {
      				Data d = (Data) data;
      				new Listcell(d.c1).setParent(item);
      				new Listcell(d.c2).setParent(item);
      				new Listcell(d.c3).setParent(item);
      				new Listcell(d.c4).setParent(item);
      			}
      		}
      		DataRenderer renderer = new DataRenderer();
      	]]></zscript>
      	<listbox id="patientListbox" model="${model}" itemRenderer="${renderer}">
      		<listhead>
      			<listheader label="column1" />
      			<listheader label="column2" align="center" width="80px" visible="false" />
      			<listheader label="column3" align="center" width="90px" visible="false" />
      			<listheader label="column4" align="center" width="125px" />
      		</listhead>
      	</listbox>
      </zk>
      

            jumperchen jumperchen
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: