data-img-jquery icon indicating copy to clipboard operation
data-img-jquery copied to clipboard

window width is off by 18px in chrome

Open scottsandersdev opened this issue 10 years ago • 1 comments

for some reason, when using your plugin, I have to subtract 18px from whatever breakpoint I want to use. I even noticed the image on your projects home page changing at this point. For example, the 800x600 switches over at 817px or 818px.

scottsandersdev avatar May 30 '14 19:05 scottsandersdev

Coul it that it's taking the window's width instead the viewport width? it uses screen = $(window).width(); maybe window.innerWidth could help

Update: tested. You can change $(window).width() for window.innerWidth. But I think this should be merged with the master? @tomsansome

CydGoblin avatar Jun 17 '15 17:06 CydGoblin