From 5110a7578e5296ee2cc99a83f6e2d74dff4ec10a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 27 Dec 2024 23:36:21 +0100 Subject: [PATCH] fix: Rendering issues with text editor in bookmark view --- plugins/builtin/source/content/views/view_bookmarks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/views/view_bookmarks.cpp b/plugins/builtin/source/content/views/view_bookmarks.cpp index 9250f27d4..f3eeeac86 100644 --- a/plugins/builtin/source/content/views/view_bookmarks.cpp +++ b/plugins/builtin/source/content/views/view_bookmarks.cpp @@ -496,8 +496,10 @@ namespace hex::plugin::builtin { editor.SetShowWhitespaces(false); if (!locked || (locked && !comment.empty())) { - ImGuiExt::Header("hex.builtin.view.bookmarks.header.comment"_lang); - editor.Render("##comment", ImVec2(ImGui::GetContentRegionAvail().x, 150_scaled), true); + if (ImGuiExt::BeginSubWindow("hex.builtin.view.bookmarks.header.comment"_lang)) { + editor.Render("##comment", ImVec2(ImGui::GetContentRegionAvail().x, 150_scaled), false); + } + ImGuiExt::EndSubWindow(); if (editor.IsTextChanged()) comment = editor.GetText();