# HG changeset patch # User neko259 # Date 2016-02-29 11:24:43 # Node ID 87524e39fe3807ad63f9fa69d3948c1a01ca4dca # Parent 2133b6c84d6165caff4085b6095de7bafd2ed3f8 Chrome image popups fix diff --git a/boards/static/js/image.js b/boards/static/js/image.js --- a/boards/static/js/image.js +++ b/boards/static/js/image.js @@ -147,7 +147,8 @@ PopupImageViewer.prototype.view = functi 'width': img_w, 'height': img_h, 'left': (win_w - img_w) / 2, - 'top': ((win_h - img_h) / 2) + 'top': ((win_h - img_h) / 2), + 'position': 'fixed' // Chrome fix because it adds a 'relative' value to the image somehow }) //scaling preview .mousewheel(function(event, delta) {