From 016fa373be76cb8d77b31cb23e60ddbd22c8cf5a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 11 May 2021 18:25:53 +0200 Subject: Do not move selected room item after filtering --- src/Entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Entry.cpp') diff --git a/src/Entry.cpp b/src/Entry.cpp index 5e18340..ba9718b 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -98,7 +98,7 @@ namespace QuickMedia { void Entry::set_position(const sf::Vector2f &pos) { background.set_position(pos); text.setPosition(pos + sf::Vector2f(background_margin_horizontal, background_margin_vertical)); - placeholder.setPosition(pos + sf::Vector2f(background_margin_horizontal, background_margin_vertical)); + placeholder.setPosition(pos + sf::Vector2f(background_margin_horizontal, background_margin_vertical + std::floor(5.0f * get_ui_scale()))); } void Entry::set_max_width(float width) { -- cgit v1.2.3