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
This commit is contained in:
@@ -2715,9 +2715,9 @@ void CodeCompleteWindow::ResizeListBox()
|
|||||||
|
|
||||||
if( (nYDiff + aFont.GetSize().getHeight()) < aSize.Height() )
|
if( (nYDiff + aFont.GetSize().getHeight()) < aSize.Height() )
|
||||||
{//bottom part is clipped, fix the visibility by placing it over the line (not under)
|
{//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();
|
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);
|
SetPosPixel(aPos);
|
||||||
}
|
}
|
||||||
long nXDiff = std::abs(aTopPoint.X() - GetPosPixel().X());
|
long nXDiff = std::abs(aTopPoint.X() - GetPosPixel().X());
|
||||||
|
Reference in New Issue
Block a user