From 49b82bd40a0d7413c3b66e2ba7fdb5e5387e5775 Mon Sep 17 00:00:00 2001 From: Dominik <45536968+authaldo@users.noreply.github.com> Date: Sun, 6 Aug 2023 12:03:01 +0200 Subject: [PATCH] fixed typo --- src/rig_reconfigure.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rig_reconfigure.cpp b/src/rig_reconfigure.cpp index ef51176..d074178 100644 --- a/src/rig_reconfigure.cpp +++ b/src/rig_reconfigure.cpp @@ -27,7 +27,9 @@ constexpr auto MIN_INPUT_TEXT_FIELD_WIDTH = 100; /// Width of the window reserved for padding (e.g. between parameter name and input field) in case the width of the /// input field is scaled using the window width. constexpr auto TEXT_INPUT_FIELD_PADDING = 100; -constexpr auto TEXT_FIELD_WITH_REDUCTION_PER_LEVEL = 22; +/// Reduction of the text field width per nesting level (necessary to avoid input field spanning across the window +/// borders) +constexpr auto TEXT_FIELD_WIDTH_REDUCTION_PER_LEVEL = 22; constexpr auto FILTER_INPUT_TEXT_FIELD_WIDTH = 250; constexpr auto FILTER_HIGHLIGHTING_COLOR = ImVec4(1, 0, 0, 1); constexpr auto STATUS_WARNING_COLOR = ImVec4(1, 0, 0, 1); @@ -555,7 +557,7 @@ std::set visualizeParameters(ServiceWrapper &serviceWrapper, } if (open) { - const auto newWidth = textfieldWidth - TEXT_FIELD_WITH_REDUCTION_PER_LEVEL; + const auto newWidth = textfieldWidth - TEXT_FIELD_WIDTH_REDUCTION_PER_LEVEL; auto subIDs = visualizeParameters(serviceWrapper, subgroup, maxParamLength, newWidth, filterString, expandAll); nodeIDs.insert(subIDs.begin(), subIDs.end());