1
0
mirror of synced 2024-11-22 21:16:10 +03:00
Commit Graph

129 Commits

Author SHA1 Message Date
Igor Vaynberg
5c709bac15 improve offscreen element positioning. fixes #1217. fixes #1218. fixes #1074 2013-05-06 15:23:46 -07:00
Igor Vaynberg
c33b9d5e98 Merge pull request #1219 from alexhaas/master
select2-drop-mask background and transparency
2013-05-06 15:16:42 -07:00
Igor Vaynberg
adb126edc6 Merge pull request #1239 from NielsKuhnel/master
Keyboard navigation in choices (whitespace preserved)
2013-05-06 13:41:06 -07:00
Igor Vaynberg
c02ea3a030 add margin:0 to select2-cotnainer. fixes #1254 2013-05-06 09:58:49 -07:00
19Gerhard85
0d67130d62 Closes #1228 2013-05-06 17:10:08 +03:00
Niels Kühnel
870b1b7165 Less aggresive keyboard deletes and carret stays 2013-05-03 11:51:41 +02:00
Niels Kühnel
877c1d90c5 Keyboard navigation in choices (tags) 2013-05-03 00:41:55 +02:00
alexhaas
bf65a2ab25 Update select2.css
Removing select2-drop-mask background and transparency to help out corporate-modified IE 8 and IE 7 browsers that disable the "filter" property in CSS.
2013-04-25 16:35:43 -03:00
Julen Ruiz Aizpuru
8cb3698820 Fix #1172 -- Properly set width when allowClear is being used.
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2013-04-12 07:58:31 -07:00
Igor Vaynberg
25549c787b Revert "applied fix for #1172 - Clear button overlaps text"
This reverts commit fd07c11484.
2013-04-12 07:58:13 -07:00
Alex Rice
a0f35aba3f Remove inline styles 2013-04-12 02:57:03 +00:00
Igor Vaynberg
fd07c11484 applied fix for #1172 - Clear button overlaps text 2013-04-11 15:00:17 -07:00
Igor Vaynberg
fffba0d1d2 fixes #1110 2013-04-09 20:36:23 -07:00
Igor Vaynberg
931862c6ef reverse selection gradient when opened up to have better separation. fixes #1040 2013-04-09 19:44:24 -07:00
jfoster
7956d7aee3 Add option to automatically size dropdown width 2013-03-18 19:56:38 -04:00
Jens Rantil
eac267b11f Bugfix: Avoid implosion of empty <option>s
When using select2 on

<select>
  <option value="empty"></option>
  <option>Val 1</option>
  <option>Val 2</option>
</select>

The top option will not have the correct height.
2013-03-15 11:15:03 +01:00
Jens Rantil
518cdf8600 Centering select2 vertically
This makes Select2 behave much more sane when it's put inline inbetween
text.
2013-03-14 15:00:09 +01:00
Igor Vaynberg
fb158ed0c8 change how offscreen css is defined. finxes #1011 2013-03-11 16:28:27 -07:00
Igor Vaynberg
8609bee8f1 fix bug in css 2013-03-05 19:30:54 -08:00
Igor Vaynberg
27f6c0198a fix dropdown mask in ie7/8. fixes #926 2013-03-01 08:48:17 -08:00
Mircea Pricop
f5b018dd09 Remove -o-box-shadow since it is not needed.
Opera implements box-shadow without a vendor prefix, so -o-box-shadow
is invalid.

See https://developer.mozilla.org/en-US/docs/CSS/box-shadow
2013-02-20 17:31:24 +01:00
Kevin Brown
940d1f2d67 Better imitate native touch experience 2013-02-11 20:31:18 -05:00
Igor Vaynberg
52c8a9e2cb remove input height css. fixes #587 2013-02-09 23:15:05 -08:00
Igor Vaynberg
a9741f9998 prevent user from selecting text in choices. fixes #551 2013-02-09 20:35:55 -08:00
Igor Vaynberg
ef364d2118 better handling of first character typed. fixes #196 2013-02-08 09:33:18 -08:00
Igor Vaynberg
8332d6a7e9 fix more hierarchical selection bugs. fixes #775 2013-02-01 15:21:07 -08:00
Igor Vaynberg
7a006a7259 fix scroll event handling since it doesnt bubble. also add a shim behind the dropdown, this allows it to properly close even when used inside modals. sometimes modals will place their own shim that closes the modal and aborts the default mousedown event. in such cases the modal would close but the dropdown element would still float on the screen now detached and the only way to close it would be to make a selection 2013-01-31 10:52:18 -08:00
Igor Vaynberg
434827d22c Merge pull request #747 from Kollibri/master
Fix issue with disabled options (Issue #733)
2013-01-24 08:42:06 -08:00
Igor Vaynberg
dc8fbba511 fixes #742 2013-01-24 08:20:46 -08:00
Amanda Myer
795bd884a6 Update select2.css 2013-01-24 11:11:44 -05:00
Amanda Myer
1949f4ce31 Update select2.css
Made disabled results show up disabled, and added a class "selected" for elements that have already been selected (by default, these elements are hidden).
2013-01-24 09:04:05 -05:00
Kevin Brown
66ca10815a Fixes #533: IE Gradients Reversed
Reverses the arguments of the IE filter properties
and removes the gradient on the arrow when the
drop-down is open

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-11-02 08:52:07 -07:00
Igor Vaynberg
4a363c4b30 Merge pull request #503 from todd-givainc/master
Feature: Locked Items
2012-10-24 13:48:46 -07:00
Igor Vaynberg
6e64336af1 fix typo in css 2012-10-16 11:56:18 -07:00
Todd Rafferty
d382f3cdb5 Added .select2-locked 2012-10-16 14:34:55 -03:00
Igor Vaynberg
6e3b7097a3 Merge pull request #495 from swhitt/master
Rename spinner.gif
2012-10-16 10:23:34 -07:00
Inkdpixels
e17f349bf7 Future friendly retina-mq
Using 'dpi' as a unit should be the way to go in the future
2012-10-16 18:34:20 +02:00
Inkdpixels
977ea92d66 Style consistency and proper intendation 2012-10-16 18:28:28 +02:00
Steve Whittaker
7beac3e27c Rename spinner.gif to select2-spinner.gif to prevent collisions with very common filename. 2012-10-13 12:31:25 -05:00
Pedro Nascimento
65d68628b8 Use single quotes for retina image url
This is how all the other images are being referenced.
2012-09-24 14:17:47 -03:00
gladmon
b96ee3fc88 Fix z-index on input text box for single selects.
Using the select2 control in a jquery dialog works fine except for you cannot click on the input box when doing a single select select box. The containing div was given a z-index, but not a position attribute, so the z-index was ignored.
2012-09-19 18:27:18 -03:00
Igor Vaynberg
7ee6446bc5 hide the x when the single select is disabled. fixes #401 2012-09-13 17:16:33 -07:00
Igor Vaynberg
b4371aa253 remove executable permission from files 2012-09-10 10:40:44 -07:00
James Koster
668c49bb21 Retina-ize icons 2012-08-20 16:26:18 +01:00
Igor Vaynberg
92cd1a9037 add vertial align top to select 2 container. fixes #266 2012-08-07 21:50:08 -07:00
Igor Vaynberg
921bf06434 fix and clean the new formatSearching() method. closes #301 2012-08-06 20:35:59 -07:00
Kevin Brown
4344fa054e Added support for limiting selection
Fixes #59

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-07-27 16:04:24 +03:00
bho
63fc044915 Added text-color that contrasts with the selected background-color 2012-07-17 14:57:51 +02:00
Igor Vaynberg
5d2bcd4007 hide things off screen at -10000 px instead of -1000. fixes #220 2012-07-16 11:41:16 +03:00
Igor Vaynberg
482cc409ea dropdown can now open above or below control depending on available screens pace. fixes #120. based on #197 2012-07-11 12:33:38 +03:00
Igor Vaynberg
12d2604ff2 boost z-index so select2 shows over dialogs. fixes #200 2012-07-09 23:16:29 +03:00
Igor Vaynberg
95a144d85e highlighting and keyboard navigation improvements to result list that has optgroups 2012-06-29 20:15:45 -07:00
Igor Vaynberg
0f473423eb remove lineheight from choice label. fixes #147 2012-06-21 21:42:45 -07:00
Igor Vaynberg
16c3d31e06 full tabbing support for the mac. closes #132 2012-06-21 21:18:13 -07:00
Igor Vaynberg
2343572a25 add spinner to search field in multiselect. fixes #130 2012-06-19 22:09:37 -07:00
Igor Vaynberg
8f6513969e when using default formatResult the matching substring is now wrapped in span with class select2-match. fixes issue #137 2012-06-19 21:31:56 -07:00
Ben Walding
437be2d632 Use consistent CSS for image URLs 2012-06-18 14:08:16 +10:00
Christopher Nadeau
b18db15f1e Tweak sub-item css a bit to make blue go full width
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-06-12 22:19:07 -07:00
Christopher Nadeau
6151ddbb0d Add support for hierarchies and unselectable items. issue #58
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-06-12 22:18:54 -07:00
Christopher Nadeau
efccc62510 Few tweaks to multi style
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-06-12 22:18:53 -07:00
Christopher Nadeau
2f3262d39e Absolutely position dropdown. fixes #84.
Changes to detach dropdown and append to body, and absolutely position
dropdown. Fixes clipping problems with overflowing.

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-06-12 22:18:40 -07:00
Igor Vaynberg
588d9a5ce9 force a min height on multi containers, closes #96 2012-06-08 14:32:17 -07:00
Igor Vaynberg
47064b2483 tweak to issue #85 do not highlight items based on keypresses 2012-06-07 23:09:51 -07:00
Adam Solove
ec759ac809 When not showing search box, up/down arrows and searching still work.
- The hidden search box is displayed off-screen instead of taken off the dom.
- User can type a search, but instead of filtering the results, just highlight the first matching result.

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-06-07 21:56:22 -07:00
Igor Vaynberg
98903a4621 css stylying for disabled mode, issue #76 2012-06-06 23:04:14 -07:00
Igor Vaynberg
af6031039a build script 2012-05-16 10:36:28 -07:00
Dean Sofer
37ddcb64a3 Fixed #43
Made the dropdown menu positioned via pure css instead of using
javascript to constantly adjust its position. YAY PERFORMANCE!

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2012-04-26 19:31:08 -07:00
Igor Vaynberg
b9c79344cd hide selected choices from the results by default. issue #1 2012-04-10 00:42:44 -07:00
Jean Jacques Warmerdam
dca2130d2c Don't remove border, make it transparent to prevent jumping of the page. 2012-04-04 14:34:02 +03:00
Justin DuJardin
fa41027264 Set min-height to 26px for proper input sizing in Opera. 2012-03-31 10:06:34 -07:00
Justin DuJardin
dd0d80532c Fix spinner.gif input jumpiness.
Apply default outline and height properties on the input, to override site-specific CSS input styles.
2012-03-31 10:02:29 -07:00
Justin DuJardin
a28ea4fb98 Cleanup sizable implementation
- Remove absolute positioning from search input, and use inline-block with width 100% and padding.
 - Remove hardcoded search results margin (space is consumed by non-absolute, inline-block search wrapper)
2012-03-29 13:39:53 -07:00
Justin DuJardin
26baca110b Remove close button outline. 2012-03-29 13:39:10 -07:00
Justin DuJardin
b2c6ced65f Rework select2 and styles to support styled width's (rather than just fixed pixel widths)
- Will not work with styles specified in remote CSS, because there's no easy way to retrieve the original css value.
 - Will work with styles specified inline on the element (regex parse out width value with specified units intact, from the element style attribute)

Tested in Firefox,Chrome,Safari,Opera
2012-03-29 13:38:57 -07:00
Igor Vaynberg
b30b455505 Fix CRLF 2012-03-29 11:08:14 -07:00
Igor Vaynberg
2dc46c4bfa move the [x] icon back to the right in single selection mode. issue #3 2012-03-26 23:52:31 -07:00
Igor Vaynberg
339c7a850e moving [x] button to the left so its easier to remove multiple sequential selections. closes #3 2012-03-26 14:24:30 -07:00
Igor Vaynberg
b5c4817149 initial support for multiselect mode, issue #1 2012-03-25 20:30:57 -07:00
Igor Vaynberg
53e214d32f initial checkin 2012-03-04 10:58:26 -08:00