You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a demo: https://jsfiddle.net/AndiLeni/jyeb2h4p/7/
As soon as the right scrollbar appears, the border is miscalculated.
There is no margin problem when no scrollbar is visible.
This issue appears to be caused by an additional scroll bar on the right side that wasn't considered in the createTransform function.
I resolved this by adjusting the viewPortWidth by subtracting the scrollBarWidth.
// on line 195varviewportWidth=window.innerWidth||document.documentElement.clientWidth||0;varviewportHeight=window.innerHeight||document.documentElement.clientHeight||0;// Calculate scrollbar widthvarscrollbarWidth=viewportWidth-document.documentElement.clientWidth;// Subtract scrollbar width from viewportWidthviewportWidth-=scrollbarWidth;
Hello,
images are missing a margin/padding on the right side on small images.
How might this be fixed?
The text was updated successfully, but these errors were encountered: