Project

General

Profile

Actions

Bug #4571

closed

select2 initial width not calculating

Added by krileon over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
31 July 2014
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

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.

Actions #2

Updated by krileon over 10 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 50 to 100

Fixed in MR !289

Actions #3

Updated by beat about 10 years ago

  • Priority changed from Low to Normal
Actions #4

Updated by beat about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF