解决预览窗口特殊情况下异常的问题

This commit is contained in:
hepuyao
2021-04-25 17:39:17 +08:00
parent 39e8fb5416
commit 01542767b0
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1397,7 +1397,7 @@ void UKUITaskGroup::showAllWindowByThumbnail()
float imgWidth = 0;
float imgHeight = 0;
if (plugin()->panel()->isHorizontal()) {
imgWidth = (float)attr.width / (float)attr.height * THUMBNAIL_HEIGHT;
imgWidth = (float)attr.width / (float)attr.height * THUMBNAIL_HEIGHT /2;
imgHeight = THUMBNAIL_HEIGHT;
} else {
imgWidth = THUMBNAIL_WIDTH;