Browse Source

src : tidy up padding in offset

pull/183/head v1.5.17
David DeSandro 13 years ago
parent
commit
ae8f91fb67
  1. 9
      jquery.isotope.js
  2. 4
      jquery.isotope.min.js

9
jquery.isotope.js

@ -1,5 +1,5 @@
/** /**
* Isotope v1.5.16 * Isotope v1.5.17
* An exquisite jQuery plugin for magical layouts * An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co * http://isotope.metafizzy.co
* *
@ -395,12 +395,9 @@
this.reloadItems(); this.reloadItems();
// get top left position of where the bricks should be // 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 = { this.offset = {
left: parseInt( (_paddingLeft ? _paddingLeft : 0), 10 ), left: parseInt( ( this.element.css('padding-left') || 0 ), 10 ),
top: parseInt( (_paddingTop ? _paddingTop : 0), 10 ) top: parseInt( ( this.element.css('padding-top') || 0 ), 10 )
}; };
// add isotope class first time around // add isotope class first time around

4
jquery.isotope.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save