mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a few documentation typos. Tweaked positioning logic for CallOutBox.
This commit is contained in:
parent
ad958be260
commit
d9f0ac29b6
6 changed files with 10 additions and 26 deletions
|
|
@ -192,7 +192,7 @@ void CallOutBox::updatePosition (const Rectangle<int>& newAreaToPointTo, const R
|
|||
float distanceFromCentre = centre.getDistanceFrom (targets[i]);
|
||||
|
||||
if (! (centrePointArea.contains (lines[i].getStart()) || centrePointArea.contains (lines[i].getEnd())))
|
||||
distanceFromCentre *= 50.0f;
|
||||
distanceFromCentre += 1000.0f;
|
||||
|
||||
if (distanceFromCentre < nearest)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue