PolymerElements / iron-fit-behavior

Fits an element into another element
17 stars 34 forks source link

handle offset caused by zoom on window #62

Closed valdrinkoshi closed 8 years ago

valdrinkoshi commented 8 years ago

Fixes #61 by computing what's the offset caused by the zoom. I don't have a clue on how to write unit tests for this one, I've tested it manually on nexus device and macos :/ Open to suggestions!

valdrinkoshi commented 8 years ago

Chatted offline with @bicknellr & concluded this is a bug on chrome where window.pageYOffset value is wrong when page is zoomed.