From be9c5785be2aca96b0b57db9d811d68e4da6e319 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 24 Sep 2011 14:06:40 -0700 Subject: [PATCH] prevent vertical scrollbar in chrom thumbnails imgs w/o src have 0 width / height, floating / absolutely positioned elements don't fill up the parent, so the parent thinks it has 0 width / height, and chrom doesn't reposition when the img does get a src. the file input always has a width / height, so don't float / position it so it fills up the parent. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b77c3c370..d5d42026e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3169,11 +3169,11 @@ http://code.google.com/p/chromium/issues/detail?id=78961\ */\ font-size: 100px;\ - position: absolute;\ - left: 0;\ opacity: 0;\ }\ #qr #files img {\ + position: absolute;\ + left: 0;\ max-height: 100px;\ max-width: 100px;\ }\ diff --git a/script.coffee b/script.coffee index 6802230f7..9df150983 100644 --- a/script.coffee +++ b/script.coffee @@ -2501,11 +2501,11 @@ Main = http://code.google.com/p/chromium/issues/detail?id=78961 */ font-size: 100px; - position: absolute; - left: 0; opacity: 0; } #qr #files img { + position: absolute; + left: 0; max-height: 100px; max-width: 100px; }