Skip to content

Commit

Permalink
src : tidy up padding in offset
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Mar 22, 2012
1 parent 013628e commit ae8f91f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions jquery.isotope.js
@@ -1,5 +1,5 @@
/**
* Isotope v1.5.16
* Isotope v1.5.17
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
Expand Down Expand Up @@ -395,12 +395,9 @@
this.reloadItems();

// get top left position of where the bricks should be
var _paddingLeft = this.element.css('padding-left');
var _paddingTop = this.element.css('padding-top');

this.offset = {
left: parseInt( (_paddingLeft ? _paddingLeft : 0), 10 ),
top: parseInt( (_paddingTop ? _paddingTop : 0), 10 )
left: parseInt( ( this.element.css('padding-left') || 0 ), 10 ),
top: parseInt( ( this.element.css('padding-top') || 0 ), 10 )
};

// add isotope class first time around
Expand Down

0 comments on commit ae8f91f

Please sign in to comment.