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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.6, 6.5.0
    • Fix Version/s: 6.5.1
    • Component/s: General
    • Environment:

      Not relevant - problem locally and in ZKOSS Sandbox

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: