diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SearchBar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index 070b763..bb7d358 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -79,7 +79,7 @@ namespace QuickMedia { } else { window.draw(text); if(show_placeholder || text.get_string().empty()) - caret.set_position(text.get_position() + mgl::vec2f(0.0f, character_size * 0.4f)); + caret.set_position(text.get_position() + mgl::vec2f(-caret.get_size().x, character_size * 0.4f)); else caret.set_position(text.find_character_pos(text.get_string().size()) + mgl::vec2f(0.0f, character_size * 0.4f)); } |