Hello Scott,
Thank you very much for the suggestion, it works perfectly for both of my
tests. I have updated the test GitHub repo
<http://ileonte.github.io/polymer-chart-test/> for anyone else who might be
interested in seeing the 'final' version.
Again, thank you for taking the time to look over my samples. Have a nice
day :)
On Monday, October 6, 2014 12:51:42 PM UTC+3, Scott Miles wrote:
>
> Try this algorithm for the patch:
>
> jQuery.fn.offset = function() { if ( !this.length ) return undefined;
> var el = this[0]; // getBoundingClientRect return value is read-only var
> box = el.getBoundingClientRect(); // we need a mutable version var off =
> {left: box.left, top: box.top}; // remove scroll offsets while (el) { var
> host = el.parentNode || el.host; if (host && host.nodeType === 1) {
> off.left += host.scrollLeft; off.top += host.scrollTop; } el = host; }
> return off; };
>
> Scott
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/58ed56b5-3621-4651-80c9-03beaaa7964b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.