1
0
mirror of synced 2025-01-10 21:41:53 +01:00

fix: Rendering issues with text editor in bookmark view

This commit is contained in:
WerWolv 2024-12-27 23:36:21 +01:00
parent 5af28670f0
commit 5110a7578e

View File

@ -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();