Kaydet (Commit) d65d9c54 authored tarafından Yousuf Philips's avatar Yousuf Philips Kaydeden (comit) Samuel Mehrbrodt

tdf#76825 Add padding between style render and context button

Change-Id: I2d1185d433be0fbb57a59e0609ab0f505248a348
Reviewed-on: https://gerrit.libreoffice.org/19210Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 94e98c67
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment