Skip to content

Commit db62af9

Browse files
committed
fix
1 parent 5313dba commit db62af9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8370,12 +8370,12 @@ left: -45px;\
83708370
if(src)type='scale';
83718371
};
83728372

8373+
var imgAS={//实际尺寸。
8374+
h:img.naturalHeight,
8375+
w:img.naturalWidth,
8376+
};
83738377
if(!src || src==imgSrc){//本图片是否被缩放.
83748378
noActual=true;
8375-
var imgAS={//实际尺寸。
8376-
h:img.naturalHeight,
8377-
w:img.naturalWidth,
8378-
};
83798379

83808380
var imgCStyle=unsafeWindow.getComputedStyle(img);
83818381
var imgCS={
@@ -8393,12 +8393,12 @@ left: -45px;\
83938393
type='force';
83948394
}
83958395
}
8396-
if (imgAS.h < prefs.gallery.scaleSmallSize && imgAS.w < prefs.gallery.scaleSmallSize) {
8397-
type = 'scaleSmall';
8398-
}
83998396
};
84008397

84018398
if(!src)return;
8399+
if (imgAS.h < prefs.gallery.scaleSmallSize && imgAS.w < prefs.gallery.scaleSmallSize) {
8400+
type = 'scaleSmall';
8401+
}
84028402

84038403
var ret = {
84048404
src: decodeURIComponent(src), // 得到的src

0 commit comments

Comments
 (0)