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

Commit cbb30f4

Browse files
release 3.5.0
1 parent 34e74e1 commit cbb30f4

File tree

10 files changed

+2084
-44
lines changed

10 files changed

+2084
-44
lines changed

DETAILS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Fuel UX can be applied to a section of your your HTML or the entire page by addi
3030
## Downloading code
3131
Fuel UX can be obtained in any of the following ways:
3232

33-
* Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.4.0/)
33+
* Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.5.0/)
3434
* Using [Bower](https://github.com/bower/bower) (ensures you get all the [dependencies](#dependencies)):
3535

3636
```
@@ -53,7 +53,7 @@ Fuel UX can be obtained in any of the following ways:
5353

5454
Cloning the repository ensures you can apply future updates to Fuel UX easily, but requires to you manage its [dependencies](#dependencies) on your own.
5555

56-
* Download a .zip archive of the [latest release](http://www.fuelcdn.com/fuelux/3.4.0/fuelux.zip).
56+
* Download a .zip archive of the [latest release](http://www.fuelcdn.com/fuelux/3.5.0/fuelux.zip).
5757

5858
## AMD support
5959

@@ -63,7 +63,7 @@ If using AMD (such as [RequireJS](http://requirejs.org)), reference the FuelUX d
6363
```javascript
6464
require.config({
6565
paths: {
66-
'fuelux': 'http://www.fuelcdn.com/fuelux/3.4.0/'
66+
'fuelux': 'http://www.fuelcdn.com/fuelux/3.5.0/'
6767
//...
6868
}
6969
});

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ Add `fuelux` class to the portion of the page using Fuel UX as seen [here](https
3232
Ensure all the dependencies are included on the page (eg, such as using the CDN as shown below).
3333
```
3434
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
35-
<link href="//www.fuelcdn.com/fuelux/3.4.0/css/fuelux.min.css" rel="stylesheet">
35+
<link href="//www.fuelcdn.com/fuelux/3.5.0/css/fuelux.min.css" rel="stylesheet">
3636
3737
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script>
3838
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.1/js/bootstrap.min.js"></script>
39-
<script src="//www.fuelcdn.com/fuelux/3.4.0/js/fuelux.min.js"></script>
39+
<script src="//www.fuelcdn.com/fuelux/3.5.0/js/fuelux.min.js"></script>
4040
4141
```
4242

4343
### Install
4444
A few ways available to install.
4545

46-
- Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.4.0/)
46+
- Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.5.0/)
4747
- [Download the latest release](https://github.com/exacttarget/fuelux/archive/3.4.0.zip).
4848
- Clone the repo: `git clone https://github.com/exacttarget/fuelux.git`.
4949
- Install with [Bower](http://bower.io): `bower install fuelux`.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fuelux",
33
"description": "Extending Bootstrap with additional lightweight JavaScript controls.",
4-
"version": "3.4.0",
4+
"version": "3.5.0",
55
"keywords": [
66
"application",
77
"bootstrap",

dist/css/fuelux.css

Lines changed: 6 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/fuelux.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/fuelux.min.css

Lines changed: 2058 additions & 2 deletions
Large diffs are not rendered by default.

dist/fuelux.zip

691 Bytes
Binary file not shown.

dist/js/fuelux.js

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Fuel UX v3.4.0
2+
* Fuel UX v3.5.0
33
* Copyright 2012-2015 ExactTarget
44
* Licensed under the BSD-3-Clause license ()
55
*/
@@ -2201,11 +2201,12 @@
22012201
this.$button = this.$element.find( '.btn.dropdown-toggle' );
22022202
this.$hiddenField = this.$element.find( '.hidden-field' );
22032203
this.$label = this.$element.find( '.selected-label' );
2204+
this.$dropdownMenu = this.$element.find( '.dropdown-menu' );
22042205

22052206
this.$element.on( 'click.fu.selectlist', '.dropdown-menu a', $.proxy( this.itemClicked, this ) );
22062207
this.setDefaultSelection();
22072208

2208-
if ( options.resize === 'auto' ) {
2209+
if ( options.resize === 'auto' || this.$element.attr( 'data-resize' ) === 'auto' ) {
22092210
this.resize();
22102211
}
22112212
};
@@ -2271,31 +2272,17 @@
22712272
},
22722273

22732274
resize: function() {
2274-
var newWidth = 0;
2275-
var sizer = $( '<div/>' ).addClass( 'selectlist-sizer' );
2276-
var width = 0;
2275+
var width = this.$dropdownMenu.outerWidth();
22772276

2278-
if ( Boolean( $( document ).find( 'html' ).hasClass( 'fuelux' ) ) ) {
2279-
// default behavior for fuel ux setup. means fuelux was a class on the html tag
2280-
$( document.body ).append( sizer );
2277+
if ( this.$button.outerWidth() > width ) {
2278+
var btnWidth = this.$button.outerWidth();
2279+
this.$dropdownMenu.css( 'width', btnWidth );
22812280
} else {
2282-
// fuelux is not a class on the html tag. So we'll look for the first one we find so the correct styles get applied to the sizer
2283-
$( '.fuelux:first' ).append( sizer );
2281+
this.$button.css( 'width', width );
2282+
this.$dropdownMenu.css( 'width', width );
22842283
}
22852284

2286-
// iterate through each item to find longest string
2287-
this.$element.find( 'a' ).each( function() {
2288-
sizer.text( $( this ).text() );
2289-
newWidth = sizer.outerWidth();
2290-
if ( newWidth > width ) {
2291-
width = newWidth;
2292-
}
2293-
} );
2294-
2295-
sizer.remove();
22962285

2297-
//TODO: betting this is somewhat off with box-sizing: border-box
2298-
this.$label.width( width );
22992286
},
23002287

23012288
selectedItem: function() {

dist/js/fuelux.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"test": "grunt travisci"
7777
},
7878
"title": "Fuel UX",
79-
"version": "3.4.0",
79+
"version": "3.5.0",
8080
"volo": {
8181
"baseDir": "lib",
8282
"dependencies": {

0 commit comments

Comments
 (0)