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

Combobutton has problems with label change if it's not closed beforehand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.0.2
    • None
    • None
    • None

      If you change the label of a combobutton component while it is still open (popup visible) then the popup itself gets corrupted. It's position is changed and it's size is limited to that of parent component.

      How to reproduce:

      <zk>
      	<window border="normal" mode="overlapped" position="center">
      		<combobutton id="comboBtn" label="open me">
      			<popup>
      				<vlayout>
      					<button id="btn1" label="click me" onClick="comboBtn.label = self.label"></button>
      					<button id="btn2" label="or me" onClick="comboBtn.label = self.label"></button>
      					<button id="btn3" label="me too!" onClick="comboBtn.label = self.label"></button>
      				</vlayout>
      			</popup>
      		</combobutton>
      	</window>
      </zk>

      Now the popup is corrupted. Please note that the clicked button is still focused so you can use a Tab key and watch that it behaves correctly.

            neillee neillee
            czynga czynga
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: