Kaydet (Commit) c4c6b52a authored tarafından David Tardon's avatar David Tardon

fdo#47963 do not increase height of checkboxes

Especially as it is obvious the grow is unbounded .-)
üst 802518c5
...@@ -1247,19 +1247,16 @@ void ExtMgrDialog::Resize() ...@@ -1247,19 +1247,16 @@ void ExtMgrDialog::Resize()
long nWidth = m_aBundledCbx.GetCtrlTextWidth( m_aBundledCbx.GetText() ); long nWidth = m_aBundledCbx.GetCtrlTextWidth( m_aBundledCbx.GetText() );
Size aBCBSize(m_aBundledCbx.GetSizePixel()); Size aBCBSize(m_aBundledCbx.GetSizePixel());
aBCBSize.Width() = nWidth + 30; aBCBSize.Width() = nWidth + 30;
aBCBSize.Height() += 3;
m_aBundledCbx.SetSizePixel( aBCBSize ); m_aBundledCbx.SetSizePixel( aBCBSize );
nWidth = m_aSharedCbx.GetCtrlTextWidth( m_aSharedCbx.GetText() ); nWidth = m_aSharedCbx.GetCtrlTextWidth( m_aSharedCbx.GetText() );
Size aSCBSize(m_aSharedCbx.GetSizePixel()); Size aSCBSize(m_aSharedCbx.GetSizePixel());
aSCBSize.Width() = nWidth + 30; aSCBSize.Width() = nWidth + 30;
aSCBSize.Height() += 3;
m_aSharedCbx.SetSizePixel( aSCBSize ); m_aSharedCbx.SetSizePixel( aSCBSize );
nWidth = m_aUserCbx.GetCtrlTextWidth( m_aUserCbx.GetText() ); nWidth = m_aUserCbx.GetCtrlTextWidth( m_aUserCbx.GetText() );
Size aUCBSize(m_aUserCbx.GetSizePixel()); Size aUCBSize(m_aUserCbx.GetSizePixel());
aUCBSize.Width() = nWidth + 30; aUCBSize.Width() = nWidth + 30;
aUCBSize.Height() += 3;
m_aUserCbx.SetSizePixel( aUCBSize ); m_aUserCbx.SetSizePixel( aUCBSize );
offsetX = 0.5*(aTotalSize.Width() - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT - 3*RSC_SP_CTRL_GROUP_X - aBCBSize.Width() - aSCBSize.Width() - aUCBSize.Width() ); offsetX = 0.5*(aTotalSize.Width() - RSC_SP_DLG_INNERBORDER_LEFT - RSC_SP_DLG_INNERBORDER_RIGHT - 3*RSC_SP_CTRL_GROUP_X - aBCBSize.Width() - aSCBSize.Width() - aUCBSize.Width() );
......
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