GUI: enforce minimum size for macro edit left col

UNTESTED
This commit is contained in:
tildearrow 2022-03-16 13:45:22 -05:00
parent fb68d2e5cb
commit 73cf7cf161

View file

@ -853,6 +853,7 @@ if (ImGui::BeginTable("MacroSpace",2)) { \
ImGui::TableNextRow(); \ ImGui::TableNextRow(); \
ImGui::TableNextColumn(); \ ImGui::TableNextColumn(); \
float lenAvail=ImGui::GetContentRegionAvail().x; \ float lenAvail=ImGui::GetContentRegionAvail().x; \
ImGui::Dummy(ImVec2(120.0f*dpiScale,dpiScale)); \
ImGui::TableNextColumn(); \ ImGui::TableNextColumn(); \
float availableWidth=ImGui::GetContentRegionAvail().x-reservedSpace; \ float availableWidth=ImGui::GetContentRegionAvail().x-reservedSpace; \
int totalFit=MIN(127,availableWidth/(16*dpiScale)); \ int totalFit=MIN(127,availableWidth/(16*dpiScale)); \