-
Bug
-
Resolution: Fixed
-
Normal
-
9.0.0
-
Security Level: Jimmy
-
ZK 9.0.1 S1
-
None
Steps to Reproduce
compare the 2 chosenboxes:
<chosenbox width="200px"/> <chosenbox width="50%"/>
start typing longer words into the input fields, which don't fit any more
Current Result
when using a pixel width the text field grows to cover the whole chosen box
for percentage the input field grows up to 40 pixels (50-10)
Expected Result
correctly calculated input field size based on the actual widget width
e.g. element.clientWidth or element.getBoundingClientRect()
Debug Information
the percentage value is parsed as an integer so 50% becomes 50px - 10px paddings
https://github.com/zkoss/zkcml/blob/master/zkmax/src/archive/web/js/zkmax/inp/Chosenbox.js#L1027
Workaround
- relates to
-
ZK-4701 chosenbox initial width too short to display emptyMessage
- Closed