-
Notifications
You must be signed in to change notification settings - Fork 22
Description
HI Gilmoreorless,
Thanks so much for this plugin, it's really useful and after alot of searching also quite unique.
I am currently using it on my fluid / responsive grid framework to test which elements are at the side and style them differently. Applying the classes dynamically is essential for a responsive grid. I am also using it on isotope items in a similar manner.
So, the only problem I'm having is with percentage widths as the browser rounds the widths and can be off by a pixel. This only really happens on fractional percentage widths so for example with the following html structure:
div style="width:50%; float:left" div style="width:50%; float:left" div style="width:33%; float:left" div style="width:33%; float:left" div style="width:33%; float:left"
When I'm testing for the nearest div to the right hand side (x:99999, h:99999) then the 2nd div will always be included but the 5th div will only be included sometimes(depending on the window size).
I think a good solution would be to include some sort of rounding option which would allow for more fuzzy results than the very exact results the plugin gives at the moment. It would certainly help me out!
If you don't have the time to add such functionality then perhaps you could steer me in the right direction?
Thanks again for creating this and best regards,
Oisin