From 938494ecf0e79566471464b615d28c05e26f0510 Mon Sep 17 00:00:00 2001 From: etorth Date: Mon, 11 Nov 2024 19:07:36 -0800 Subject: [PATCH] f --- client/src/gui/friendchatboard/friendchatboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/gui/friendchatboard/friendchatboard.cpp b/client/src/gui/friendchatboard/friendchatboard.cpp index 734b197b..dd3366f2 100644 --- a/client/src/gui/friendchatboard/friendchatboard.cpp +++ b/client/src/gui/friendchatboard/friendchatboard.cpp @@ -953,7 +953,7 @@ bool FriendChatBoard::processEventDefault(const SDL_Event &event, bool valid) const auto fnAdjustW = [this](int dw, bool adjustOff) { const int oldW = w(); - const int newW = std::max(oldW + dw, UIPage_MIN_WIDTH); + const int newW = std::max(oldW + dw, UIPage_BORDER[2] + UIPage_MIN_WIDTH + UIPage_BORDER[3]); if(oldW != newW){ setW(newW); @@ -966,7 +966,7 @@ bool FriendChatBoard::processEventDefault(const SDL_Event &event, bool valid) const auto fnAdjustH = [this](int dh, bool adjustOff) { const int oldH = h(); - const int newH = std::max(oldH + dh, UIPage_MIN_HEIGHT); + const int newH = std::max(oldH + dh, UIPage_BORDER[0] + UIPage_MIN_HEIGHT + UIPage_BORDER[1]); if(oldH != newH){ setH(newH);