vcl/source/window/status.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 3e602a74c8de7553ca2340e695ac6a6ec396e1b8 Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Mon May 15 15:28:04 2023 +0200 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Tue May 16 08:05:10 2023 +0200 Resolves tdf#155278 - Adjust minimum statusbar height according icons Change-Id: I7dbcf35f338bfe87702afb45651cd99630efe875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151768 Reviewed-by: Stéphane Guillou <stephane.guil...@libreoffice.org> Tested-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 9907dd5479db..b2945bde49f7 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -41,6 +41,8 @@ #define STATUSBAR_PRGS_COUNT 100 #define STATUSBAR_PRGS_MIN 5 +#define STATUSBAR_MIN_HEIGHT 16 // icons height, tdf#153344 + class StatusBar::ImplData { public: @@ -1428,7 +1430,7 @@ Size StatusBar::CalcWindowSizePixel() const i++; } - tools::Long nMinHeight = GetTextHeight(); + tools::Long nMinHeight = std::max( static_cast<int>(GetTextHeight()), STATUSBAR_MIN_HEIGHT); const tools::Long nBarTextOffset = STATUSBAR_OFFSET_TEXTY*2; tools::Long nProgressHeight = nMinHeight + nBarTextOffset;