Bug #4571
closed
select2 initial width not calculating
Added by krileon over 10 years ago.
Updated about 10 years ago.
Description
Default select behavior is the width should be the length of the largest option and max out at element width. Currently select2 width is based off the selected option. This causes "element shifting" which moves elements to the right of it around. Try implementing proper width calculating in cbselect2.
- % Done changed from 0 to 50
New width mode "calculated" attempts to calculate the element width by cloning, moving to top of dom, and grabbing its width. Padding is also copied, but some other styles also need to copy over (probably all except a few). Currently it's a few pixels off. There's also the issue of the select2 dropdown arrow that consumes some space too, which needs to be added.
- Status changed from Assigned to Resolved
- % Done changed from 50 to 100
- Priority changed from Low to Normal
- Status changed from Resolved to Closed
Also available in: Atom
PDF