From d52759f898021ff49fe5ff9ac08add10bafe3f7f Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Sat, 4 Oct 2025 20:25:11 +0300 Subject: [PATCH] Delete bookmark button works properly, and bookmark textbox doesnt change height --- src/GUIStuff/Elements/TextBox.hpp | 2 +- src/Toolbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUIStuff/Elements/TextBox.hpp b/src/GUIStuff/Elements/TextBox.hpp index 06b0801..ad49c4f 100644 --- a/src/GUIStuff/Elements/TextBox.hpp +++ b/src/GUIStuff/Elements/TextBox.hpp @@ -18,7 +18,7 @@ template class TextBox : public Element { CLAY({ .layout = { - .sizing = {.width = CLAY_SIZING_GROW(static_cast(io.fontSize * 2)), .height = CLAY_SIZING_GROW(static_cast(io.fontSize))} + .sizing = {.width = CLAY_SIZING_GROW(static_cast(io.fontSize * 2)), .height = CLAY_SIZING_GROW(static_cast(io.fontSize * 1.25f))} }, .custom = { .customData = this } }) { diff --git a/src/Toolbar.cpp b/src/Toolbar.cpp index d544771..7617c5e 100644 --- a/src/Toolbar.cpp +++ b/src/Toolbar.cpp @@ -794,7 +794,7 @@ void Toolbar::bookmark_menu(bool justOpened) { } }); if(!toDelete.empty()) - main.world->bMan.remove_bookmark(bookMenu.newName); + main.world->bMan.remove_bookmark(toDelete); bool bookmarkExists = std::find(main.world->bMan.sorted_names().begin(), main.world->bMan.sorted_names().end(), bookMenu.newName) != main.world->bMan.sorted_names().end(); gui.left_to_right_line_layout([&]() { gui.input_text("bookmark text input", &bookMenu.newName);