Isotope not respecting percentage (%) margins in Webkit browsers #119

Closed
ghost opened this Issue Nov 26, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@ghost

ghost commented Nov 26, 2011

Best just to view this fiddle in both Firefox and Chrome/Safari to see what I'm talking about.

http://jsfiddle.net/LuckyKind/hpsgT/

Basically... it works fine with pixel margins in all browsers, but when the margins are percentages... Firefox holds true, while Chrome/Safari fail...

Owner

desandro commented Nov 30, 2011

This is a jQuery bug, not Isotope specifically. Keep an eye on jQuery bugs #10117 and #10639. Hopefully this will be resolved in jQuery v1.7.2

Seems that it in turn is a Webkit bug (#29084). A hack/workaround was added to jQuery three weeks ago, and is slated for 1.7.2.

Owner

desandro commented Apr 30, 2012

Closed as fixed with jQuery 1.7.2

desandro closed this Apr 30, 2012

@npmcomponent npmcomponent pushed a commit to npmcomponent/danzajdband-vanilla-masonry that referenced this issue Jan 6, 2014

@desandro desandro src & test : add hackPercentMargin to getWH
fixes bug when margin is in percentage

Re metafizzy/isotope#119

All the hard work done by @mikesherov
http://bugs.jquery.com/ticket/10639
jquery/jquery#616
1ffd1d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment