Skip to content

Commit

Permalink
Merge pull request #25 from NathanaelA/master
Browse files Browse the repository at this point in the history
Fix for iOS getting resized with NaN numbers
  • Loading branch information
bradmartin committed May 9, 2016
2 parents 194e890 + 6a11bb3 commit ad7ef22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fab.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ var FloatingActionButtonStyler = (function () {
// WIDTH\HEIGHT
FloatingActionButtonStyler.setSizeProperty = function (view, newValue) {
var fab = view.ios;
if (isNaN(newValue)) return;
fab.bounds.size.width = newValue;
fab.bounds.size.height = newValue;

Expand Down

0 comments on commit ad7ef22

Please sign in to comment.