From 08f97d24f14a075c7b5388f830cc4459330e2d6d Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 2 Oct 2019 11:02:59 -0400 Subject: [PATCH] Nudge ParamTooltip inside parent. --- src/app/ParamWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/ParamWidget.cpp b/src/app/ParamWidget.cpp index 1127f192..50a6691f 100644 --- a/src/app/ParamWidget.cpp +++ b/src/app/ParamWidget.cpp @@ -72,6 +72,9 @@ struct ParamTooltip : ui::Tooltip { Tooltip::step(); // Position at bottom-right of parameter box.pos = paramWidget->getAbsoluteOffset(paramWidget->box.size).round(); + // Fit inside parent (copied from Tooltip.cpp) + assert(parent); + box = box.nudge(parent->box.zeroPos()); } };