mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a TextEditor border size issue.
This commit is contained in:
parent
23cf12f449
commit
e1fed0c2dc
1 changed files with 2 additions and 2 deletions
|
|
@ -1504,8 +1504,8 @@ void TextEditor::moveCaretTo (const int newPosition, const bool isSelecting)
|
|||
|
||||
int TextEditor::getTextIndexAt (const int x, const int y)
|
||||
{
|
||||
return indexAtPosition ((float) (x + viewport->getViewPositionX() - leftIndent),
|
||||
(float) (y + viewport->getViewPositionY() - topIndent));
|
||||
return indexAtPosition ((float) (x + viewport->getViewPositionX() - leftIndent - borderSize.getLeft()),
|
||||
(float) (y + viewport->getViewPositionY() - topIndent - borderSize.getTop()));
|
||||
}
|
||||
|
||||
void TextEditor::insertTextAtCaret (const String& t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue