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

Listbox sizable fail when set height attribute (Firefox 11.0 only)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1, 5.0.12
    • 5.0.10
    • Components
    • Firefox 11.0

      1. Drag "Last Name" column to resize
      2. Only header width changed.
      3. Happens in Firefox 11.0 only.

      <zk>
      	<zscript><![CDATA[
      		class Person {
      			public String firstName;
      			public String lastName;
      			public String fullName;
      			public Person(String fn, String ln) {
      				firstName = fn;
      				lastName = ln;
      				fullName = fn + " " + ln;
      			}
      		}
      		class Renderer implements ListitemRenderer {
      			public void render(Listitem item, Object data) throws Exception {
      				Person p = (Person) data;
      				new Listcell(p.firstName).setParent(item);
      				new Listcell(p.lastName).setParent(item);
      				new Listcell(p.fullName).setParent(item);
      			}
      		}
      		
      		ArrayList pList = new ArrayList();
      		pList.add(new Person("A","A"));
      		pList.add(new Person("B","B"));
      		pList.add(new Person("C","C"));
      		ListModelList lml = new ListModelList(pList);
      		Renderer render = new Renderer();
      	]]></zscript>
      	<listbox model="${lml}" itemRenderer="${render}" height="425px">
      		<listhead sizable="true">
      			<listheader width="150px" label="First Name" />
      			<listheader width="150px" label="Last Name" />
      			<listheader width="300px" label="Full Name" />
      		</listhead>
      	</listbox>
      </zk>
      

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

              Created:
              Updated:
              Resolved: