mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Make sure settings descriptions are always visible
This commit is contained in:
@@ -102,8 +102,9 @@ namespace hex::plugin::builtin {
|
||||
if (ImGuiExt::BeginSubWindow(Lang(subCategory.unlocalizedName))) {
|
||||
for (auto &setting : subCategory.entries) {
|
||||
ImGui::BeginDisabled(!setting.widget->isEnabled());
|
||||
ImGui::PushItemWidth(-200_scaled);
|
||||
bool settingChanged = setting.widget->draw(Lang(setting.unlocalizedName));
|
||||
auto title = Lang(setting.unlocalizedName);
|
||||
ImGui::PushItemWidth(std::min(ImGui::GetContentRegionAvail().x - ImGui::CalcTextSize(title.get()).x - 20_scaled, 500_scaled));
|
||||
bool settingChanged = setting.widget->draw(title);
|
||||
ImGui::PopItemWidth();
|
||||
ImGui::EndDisabled();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user