Actions
Bug #4571
closedselect2 initial width not calculating
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.
Updated by krileon over 10 years ago
- % 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.
Updated by krileon over 10 years ago
- Status changed from Assigned to Resolved
- % Done changed from 50 to 100
Fixed in MR !289
Actions