Kaydet (Commit) 0d501c40 authored tarafından Caolán McNamara's avatar Caolán McNamara

add border width to optimal size when present

Change-Id: I37c396c3c61521e140d290fd8f17220f60c43284
üst 95f2f5f4
......@@ -3418,6 +3418,12 @@ Size SvTreeListBox::GetOptimalSize() const
Size aRet(0, getPreferredDimensions(aWidths));
for (size_t i = 0; i < aWidths.size(); ++i)
aRet.Width() += aWidths[i];
if (GetStyle() & WB_BORDER)
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
aRet.Width() += rStyleSettings.GetBorderSize() * 2;
aRet.Height() += rStyleSettings.GetBorderSize() * 2;
}
return aRet;
}
......
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