aboutsummaryrefslogtreecommitdiff
path: root/src/Entry.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-11 18:25:53 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-11 18:25:53 +0200
commit016fa373be76cb8d77b31cb23e60ddbd22c8cf5a (patch)
tree0d563106a92d6c28768963bc620eab5d48b3dca8 /src/Entry.cpp
parentd1920de838b17847b2e8a1520af0d82e670d5558 (diff)
Do not move selected room item after filtering
Diffstat (limited to 'src/Entry.cpp')
-rw-r--r--src/Entry.cpp2
1 files changed, 1 insertions, 1 deletions
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) {