summaryrefslogtreecommitdiff
path: root/basctl/source/basicide
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-08-01 14:46:57 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-08-01 14:46:57 +0200
commit5afbbc2258c83146f6d8f65be39b220a08479e40 (patch)
tree125c3eb062c2bdb46c2a2ad4148ed7a82594a89f /basctl/source/basicide
parente5c7d729f29e1f2eb7144f58e7c8f4fa1048f505 (diff)
GSOC work, listbox hides the cursor fix
When the listbox appears over the line, it no more hides the top of the cursor. Change-Id: Ic2d0e8295cc4c44f06765af0d431859b53ab88d2
Diffstat (limited to 'basctl/source/basicide')
-rw-r--r--basctl/source/basicide/baside2b.cxx4
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());