diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2023-05-15 15:28:04 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2023-05-16 08:05:10 +0200 |
commit | 3e602a74c8de7553ca2340e695ac6a6ec396e1b8 (patch) | |
tree | cc7751c5262209407c2bb4ca9c25e623e0ff359c /vcl/source | |
parent | 83650c82b56f496cd165981aa34edef9d5547697 (diff) |
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.guillou@libreoffice.org>
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/status.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; |