diff options
author | Yousuf Philips <philipz85@hotmail.com> | 2015-10-06 20:06:05 +0400 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-11-25 12:14:24 +0000 |
commit | d65d9c546125ab999d645a921731170d60fa14ee (patch) | |
tree | d6916ab20c2f93f34b0a3038343ad4196fd6863b /svx | |
parent | 94e98c674a4ff67dff78a2871d33f79ce74e6a77 (diff) |
tdf#76825 Add padding between style render and context button
Change-Id: I2d1185d433be0fbb57a59e0609ab0f505248a348
Reviewed-on: https://gerrit.libreoffice.org/19210
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 0b2ef2498d78..ce7d8777273b 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -308,6 +308,7 @@ class SfxStyleControllerItem_Impl : public SfxStatusListener }; #define BUTTON_WIDTH 20 +#define BUTTON_PADDING 10 #define ITEM_HEIGHT 30 SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent, @@ -827,7 +828,7 @@ IMPL_LINK_TYPED(SvxStyleBox_Impl, CalcOptimalExtraUserWidth, VclWindowEvent&, ev } Pop(); - const long nWidth = aTextRectForActualFont.GetWidth() + BUTTON_WIDTH; + const long nWidth = aTextRectForActualFont.GetWidth() + BUTTON_WIDTH + BUTTON_PADDING; nMaxUserDrawFontWidth = std::max(nWidth, nMaxUserDrawFontWidth); } |