From 7e9ac9d5c99698c7ac5adfe95f38289c37cd9f42 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 29 Aug 2020 14:59:03 -0400 Subject: [PATCH] v0.8.2d: tweaked sizing on WndBag --- .../shatteredpixel/shatteredpixeldungeon/windows/WndBag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java index 4767e6761..33d29e2a1 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java @@ -151,12 +151,12 @@ public class WndBag extends WndTabbed { int windowHeight = TITLE_HEIGHT + slotHeight * nRows + SLOT_MARGIN * (nRows - 1); if (PixelScene.landscape()){ - while (windowHeight + 20 > PixelScene.uiCamera.height){ + while (slotHeight >= 24 && (windowHeight + 20 + chrome.marginTop()) > PixelScene.uiCamera.height){ slotHeight--; windowHeight -= nRows; } } else { - while (windowWidth > PixelScene.uiCamera.width){ + while (slotWidth >= 26 && (windowWidth + chrome.marginHor()) > PixelScene.uiCamera.width){ slotWidth--; windowWidth -= nCols; }