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

Listbox in Bandpopup of a Bandbox is not size correctly - "rows" is ignored.

XMLWordPrintable

      If you use the following code in sandbox then on the first run the drop down window is too long (space after row 5). After closing and opening the drop down, it is correctly sized - 5 rows shown, no excess space.

      Although not a major problem when doing all in the ZUL, if instead of creating the list items in the ZUL you do it in a controller, the drop down ends up being sized to the available space rather than limited to "rows=" value. This is a more serious problem as the drop down can end up overlaying the bandbox input field. Second building of the drop down works fine. It seems to only be on initial creation.

      		<bandbox  width="150px" autodrop="true" buttonVisible="true" mold="rounded">
      			<bandpopup> 
      				<listbox  width="200px" rows="5">
      					<listitem>
      						<listcell label="0" />
      					</listitem>
      					<listitem>
      						<listcell label="1" />
      					</listitem>
      					<listitem>
      						<listcell label="2" />
      					</listitem>
      					<listitem>
      						<listcell label="3" />
      					</listitem>
      					<listitem>
      						<listcell label="4" />
      					</listitem>
      					<listitem>
      						<listcell label="5" />
      					</listitem>
      					<listitem>
      						<listcell label="6" />
      					</listitem>
      					<listitem>
      						<listcell label="7" />
      					</listitem>
      					<listitem>
      						<listcell label="8" />
      					</listitem>
      					<listitem>
      						<listcell label="9" />
      					</listitem>
      					<listitem>
      						<listcell label="10" />
      					</listitem>
      					<listitem>
      						<listcell label="11" />
      					</listitem>
      				</listbox>
      			</bandpopup>
      		</bandbox>
      

            MontyPan MontyPan
            Bobzk Bobzk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: