From 7d23ad29e09fb21ac2c202367da80eaf0fbe78e1 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 25 Sep 2022 11:23:03 +0400 Subject: [PATCH] Make count input box larger to fit larger text --- apps/openmw/mwgui/countdialog.cpp | 2 +- files/data/mygui/openmw_count_window.layout | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwgui/countdialog.cpp b/apps/openmw/mwgui/countdialog.cpp index 86d6402c88..2ca6657a17 100644 --- a/apps/openmw/mwgui/countdialog.cpp +++ b/apps/openmw/mwgui/countdialog.cpp @@ -40,7 +40,7 @@ namespace MWGui mSlider->setScrollRange(maxCount); mItemText->setCaption(item); - int width = std::max(mItemText->getTextSize().width + 128, 320); + int width = std::max(mItemText->getTextSize().width + 160, 320); setCoord(viewSize.width / 2 - width / 2, viewSize.height / 2 - mMainWidget->getHeight() / 2, width, mMainWidget->getHeight()); diff --git a/files/data/mygui/openmw_count_window.layout b/files/data/mygui/openmw_count_window.layout index c9e160cbb2..3f1729f56d 100644 --- a/files/data/mygui/openmw_count_window.layout +++ b/files/data/mygui/openmw_count_window.layout @@ -5,10 +5,10 @@ - + - +