Browse Source

Avoided an assertion with very wide tooltip windows.

tags/2021-05-28
jules 12 years ago
parent
commit
1d806961e4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/windows/juce_TooltipWindow.cpp

+ 2
- 2
modules/juce_gui_basics/windows/juce_TooltipWindow.cpp View File

@@ -97,8 +97,8 @@ void TooltipWindow::showFor (const String& tip)
else
y += 6;
x = jlimit (parentArea.getX(), parentArea.getRight() - w, x);
y = jlimit (parentArea.getY(), parentArea.getBottom() - h, y);
x = jmax (parentArea.getX(), jmin (parentArea.getRight() - w, x));
y = jmax (parentArea.getY(), jmin (parentArea.getBottom() - h, y));
setBounds (x, y, w, h);
setVisible (true);


Loading…
Cancel
Save