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

Commit

Permalink
release 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
interactivellama committed Jan 15, 2015
1 parent 34e74e1 commit cbb30f4
Show file tree
Hide file tree
Showing 10 changed files with 2,084 additions and 44 deletions.
6 changes: 3 additions & 3 deletions DETAILS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Fuel UX can be applied to a section of your your HTML or the entire page by addi
## Downloading code
Fuel UX can be obtained in any of the following ways:

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

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

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

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

## AMD support

Expand All @@ -63,7 +63,7 @@ If using AMD (such as [RequireJS](http://requirejs.org)), reference the FuelUX d
```javascript
require.config({
paths: {
'fuelux': 'http://www.fuelcdn.com/fuelux/3.4.0/'
'fuelux': 'http://www.fuelcdn.com/fuelux/3.5.0/'
//...
}
});
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ Add `fuelux` class to the portion of the page using Fuel UX as seen [here](https
Ensure all the dependencies are included on the page (eg, such as using the CDN as shown below).
```
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//www.fuelcdn.com/fuelux/3.4.0/css/fuelux.min.css" rel="stylesheet">
<link href="//www.fuelcdn.com/fuelux/3.5.0/css/fuelux.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.1/js/bootstrap.min.js"></script>
<script src="//www.fuelcdn.com/fuelux/3.4.0/js/fuelux.min.js"></script>
<script src="//www.fuelcdn.com/fuelux/3.5.0/js/fuelux.min.js"></script>
```

### Install
A few ways available to install.

- Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.4.0/)
- Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.5.0/)
- [Download the latest release](https://github.com/exacttarget/fuelux/archive/3.4.0.zip).
- Clone the repo: `git clone https://github.com/exacttarget/fuelux.git`.
- Install with [Bower](http://bower.io): `bower install fuelux`.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fuelux",
"description": "Extending Bootstrap with additional lightweight JavaScript controls.",
"version": "3.4.0",
"version": "3.5.0",
"keywords": [
"application",
"bootstrap",
Expand Down
15 changes: 6 additions & 9 deletions dist/css/fuelux.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/fuelux.css.map

Large diffs are not rendered by default.

2,060 changes: 2,058 additions & 2 deletions dist/css/fuelux.min.css

Large diffs are not rendered by default.

Binary file modified dist/fuelux.zip
Binary file not shown.
31 changes: 9 additions & 22 deletions dist/js/fuelux.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Fuel UX v3.4.0
* Fuel UX v3.5.0
* Copyright 2012-2015 ExactTarget
* Licensed under the BSD-3-Clause license ()
*/
Expand Down Expand Up @@ -2201,11 +2201,12 @@
this.$button = this.$element.find( '.btn.dropdown-toggle' );
this.$hiddenField = this.$element.find( '.hidden-field' );
this.$label = this.$element.find( '.selected-label' );
this.$dropdownMenu = this.$element.find( '.dropdown-menu' );

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

if ( options.resize === 'auto' ) {
if ( options.resize === 'auto' || this.$element.attr( 'data-resize' ) === 'auto' ) {
this.resize();
}
};
Expand Down Expand Up @@ -2271,31 +2272,17 @@
},

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

if ( Boolean( $( document ).find( 'html' ).hasClass( 'fuelux' ) ) ) {
// default behavior for fuel ux setup. means fuelux was a class on the html tag
$( document.body ).append( sizer );
if ( this.$button.outerWidth() > width ) {
var btnWidth = this.$button.outerWidth();
this.$dropdownMenu.css( 'width', btnWidth );
} else {
// 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
$( '.fuelux:first' ).append( sizer );
this.$button.css( 'width', width );
this.$dropdownMenu.css( 'width', width );
}

// iterate through each item to find longest string
this.$element.find( 'a' ).each( function() {
sizer.text( $( this ).text() );
newWidth = sizer.outerWidth();
if ( newWidth > width ) {
width = newWidth;
}
} );

sizer.remove();

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

selectedItem: function() {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/fuelux.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"test": "grunt travisci"
},
"title": "Fuel UX",
"version": "3.4.0",
"version": "3.5.0",
"volo": {
"baseDir": "lib",
"dependencies": {
Expand Down

0 comments on commit cbb30f4

Please sign in to comment.