Kaydet (Commit) 9e7bf5d3 authored tarafından Caolán McNamara's avatar Caolán McNamara

tdf#121232 set a size request that will result in a 0 m_nXGap by default

Change-Id: I25ce389bd46beff2dd9b0507581736f2f9511383
Reviewed-on: https://gerrit.libreoffice.org/63574
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ec4769a8
......@@ -82,8 +82,16 @@ SvxShowCharSet::SvxShowCharSet(std::unique_ptr<weld::ScrolledWindow> pScrolledWi
void SvxShowCharSet::SetDrawingArea(weld::DrawingArea* pDrawingArea)
{
CustomWidgetController::SetDrawingArea(pDrawingArea);
mxScrollArea->set_size_request(COLUMN_COUNT * pDrawingArea->get_approximate_digit_width() * 4,
ROW_COUNT * pDrawingArea->get_text_height() * 2);
Size aSize(COLUMN_COUNT * pDrawingArea->get_approximate_digit_width() * 5.25,
ROW_COUNT * pDrawingArea->get_text_height() * 2);
nX = aSize.Width() / COLUMN_COUNT;
nY = aSize.Height() / ROW_COUNT;
// tdf#121232 set a size request that will result in a 0 m_nXGap by default
mxScrollArea->set_size_request(COLUMN_COUNT * nX + mxScrollArea->get_vscroll_width() + 2,
ROW_COUNT * nY);
}
void SvxShowCharSet::init()
......
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