diff --git a/src/Application/Application_MassViewer.cpp b/src/Application/Application_MassViewer.cpp index 992a2ac..db74921 100644 --- a/src/Application/Application_MassViewer.cpp +++ b/src/Application/Application_MassViewer.cpp @@ -468,6 +468,7 @@ Application::drawDecalEditor(GameObjects::Decal& decal) { ImGui::SameLine(); ImGui::BeginGroup(); + ImGui::PushItemWidth(-1.0f); ImGui::PushMultiItemsWidths(3, ImGui::CalcItemWidth()); ImGui::DragFloat("##PosX", &decal.position.x(), 1.0f, -FLT_MAX, +FLT_MAX, "X: %.3f"); ImGui::PopItemWidth(); @@ -497,6 +498,7 @@ Application::drawDecalEditor(GameObjects::Decal& decal) { ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); ImGui::DragFloat("##VZ", &decal.vAxis.z(), 1.0f, -FLT_MAX, +FLT_MAX, "Z: %.3f"); ImGui::PopItemWidth(); + ImGui::PopItemWidth(); ImGui::EndGroup(); }