diff options
author | Gergo Mocsi <gmocsi91@gmail.com> | 2013-08-01 14:46:57 +0200 |
---|---|---|
committer | Gergo Mocsi <gmocsi91@gmail.com> | 2013-09-02 18:16:54 +0200 |
commit | cbd61c3047a7df1c2995ef3ce1acf55b6950af76 (patch) | |
tree | fe96c938c74b83ce075833cd147ad20e5304d6f7 /basctl | |
parent | ec4c6f3da0d274b0ba54dcce44827aa36025ea56 (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')
-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 4cd4258dcc12..1f9889150f51 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2715,9 +2715,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()); |