Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
- fixes #1069
Browse files Browse the repository at this point in the history
- Solution needed for selectlist [data-resize]=auto when `display: none`
- added catch if width returns as 0 and displays selectlist as normal.
- different test examples http://jsbin.com/beyogiqizi/
- changed name of appended class to understand its use "dummy-selectlist" instead of "selectlist-sizer"
  • Loading branch information
BenjaminNeilDavis committed Feb 10, 2015
1 parent b527d41 commit 725050f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/selectlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
resize: function () {
var width = 0;
var newWidth = 0;
var sizer = $('<div/>').addClass('selectlist-sizer');
var sizer = $('<div/>').addClass('dummy-selectlist');


if (Boolean($(document).find('html').hasClass('fuelux'))) {
Expand Down
2 changes: 1 addition & 1 deletion less/misc.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ input, textarea {
left:-9999px;
}

.button-sizer, .selectlist-sizer {
.button-sizer, .dummy-selectlist {
display: inline-block;
position: absolute;
visibility: hidden;
Expand Down

0 comments on commit 725050f

Please sign in to comment.