impr: Better UI resize handling on welcome screen

This commit is contained in:
WerWolv
2023-12-18 13:08:17 +01:00
parent 2948e57242
commit 4973556fc8
2 changed files with 9 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ namespace hex::plugin::builtin {
ImGui::TableNextColumn();
ImGui::Image(s_bannerTexture, s_bannerTexture.getSize() / (1.5F * (1.0F / ImHexApi::System::getGlobalScale())));
ImGui::PushTextWrapPos(500_scaled);
ImGui::PushTextWrapPos(std::min(500_scaled, ImGui::GetContentRegionAvail().x));
ImGuiExt::TextFormattedWrapped("A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.");
ImGui::PopTextWrapPos();