Browse Source

src : use padding for offset

Ref #140
pull/150/head v1.5.09
David DeSandro 13 years ago
parent
commit
7c93bead1b
  1. 9
      jquery.isotope.js
  2. 4
      jquery.isotope.min.js

9
jquery.isotope.js

@ -1,5 +1,5 @@
/**
* Isotope v1.5.08
* Isotope v1.5.09
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
@ -388,9 +388,10 @@
this.reloadItems();
// get top left position of where the bricks should be
var $cursor = $( document.createElement('div') ).prependTo( this.element );
this.offset = $cursor.position();
$cursor.remove();
this.offset = {
left: parseInt( this.element.css('padding-left'), 10 ),
top: parseInt( this.element.css('padding-top'), 10 )
};
// add isotope class first time around
var instance = this;

4
jquery.isotope.min.js vendored

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