Kaydet (Commit) 6a64e5bb authored tarafından Ivan Timofeev's avatar Ivan Timofeev Kaydeden (comit) Noel Power

Revert "Set the listbox height to an integer multiple of the listbox entry...

This reverts commit 16c9d63d.

Conflicts:

	svtools/source/contnr/svimpbox.cxx

Change-Id: I8e030e3b85fbf31d8369646e55048b830a83486e
üst 2580fcb6
......@@ -1352,18 +1352,8 @@ void SvImpLBox::InitScrollBarBox()
void SvImpLBox::Resize()
{
Size aSize( pView->Control::GetOutputSizePixel());
long nEntryHeight = pView->GetEntryHeight();
if( aSize.Width() <= 0 || aSize.Height() <= 0 )
return;
if( nEntryHeight )
{
// Set the view height to an integer multiple of the entry height.
int nEntryCount = (int) aSize.Height() / nEntryHeight;
aSize.Height() = pView->GetEntryHeight() * nEntryCount;
pView->Control::SetOutputSizePixel( aSize );
}
nFlags |= F_IN_RESIZE;
InitScrollBarBox();
......
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