captureBounds.width = textVisualElementBounds.width - captureBounds.x;
}
- captureBounds.y = cursorBounds.y;
+ captureBounds.y = cursorBounds.y + cursorBounds.height/2 - captureHeight/2;
if (cursorBounds.y <= textVisualElementBounds.height - captureHeight)
{
captureBounds.height = captureHeight;
}
if (point.y < 0.0f || (point.y > GetBoundsF().height))
{
+ __pCopyPasteManager->SetCursorPosition(previousCursorPos);
+ pEditPresenter->SetCursorChangedFlag(!__leftHandler);
return true;
}
}
pTextObject->SetFirstDisplayLineIndexFromTextIndex(cursorPos);
- __pCopyPasteManager->SetCursorPosition(cursorPos);
__handlerCursorPos = cursorPos;
if (!__singleHandler)
{
}
else
{
+ __pCopyPasteManager->SetCursorPosition(cursorPos);
pEditPresenter->DrawText();
AdjustBounds();
}
GET_SHAPE_CONFIG(CONTEXTMENU::GRID_BOTTOM_MARGIN, orientation, contextMenuBottomMargin);
GET_SHAPE_CONFIG(CONTEXTMENU::ANCHOR_HEIGHT, orientation, contextMenuArrowHeight);
- if ( __pEdit->GetTextLength() == 0 && !__pEdit->IsClipped())
+ if ((__pEdit->GetTextLength() == 0 || __pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && !__pEdit->IsClipped())
{
return;
}
editAbsBounds.x += textObjectBounds.x;
editAbsBounds.y += textObjectBounds.y;
editAbsBounds.width = textObjectBounds.width;
- editAbsBounds.height = textObjectBounds.height;
+
+ if (!(__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+ {
+ editAbsBounds.height = textObjectBounds.height;
+ }
+
_Toolbar* pCommandButton = __pEditPresenter->GetKeypadCommandButton();
if (pCommandButton)
{
editAbsBounds.x += textObjectBounds.x;
editAbsBounds.y += textObjectBounds.y;
editAbsBounds.width = textObjectBounds.width;
- editAbsBounds.height = textObjectBounds.height;
+
+ if (!(__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+ {
+ editAbsBounds.height = textObjectBounds.height;
+ }
+
_Toolbar* pCommandButton = __pEditPresenter->GetKeypadCommandButton();
if (pCommandButton)
{