diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index dcf124afe915..a18e47538547 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2709,9 +2709,9 @@ void CodeCompleteWindow::ResizeListBox() if( (nYDiff + aFont.GetSize().getHeight()) < aSize.Height() ) {//bottom part is clipped, fix the visibility by placing it over the line (not under) - //std::cerr << "clipped at the bottom" << std::endl; Point aPos = GetPosPixel(); - aPos.Y() = aPos.Y() - (aSize.getHeight() + aFont.GetSize().getHeight()); + Font aParFont = pParent->GetEditEngine()->GetFont(); + aPos.Y() = aPos.Y() - (aSize.getHeight() + aParFont.GetSize().getHeight()+5); SetPosPixel(aPos); } long nXDiff = std::abs(aTopPoint.X() - GetPosPixel().X()); |