Browse Source

Nudge ParamTooltip inside parent.

tags/v1.1.6
Andrew Belt 2 years ago
parent
commit
08f97d24f1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/app/ParamWidget.cpp

+ 3
- 0
src/app/ParamWidget.cpp View File

@@ -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());
}
};



Loading…
Cancel
Save