From 224401a7a98caf9605fa5fe2eac8595c314a97a1 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 11 Nov 2013 10:37:24 +0000 Subject: [PATCH] Minor fix to CallOutBox positioning. --- modules/juce_gui_basics/windows/juce_CallOutBox.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/juce_gui_basics/windows/juce_CallOutBox.cpp b/modules/juce_gui_basics/windows/juce_CallOutBox.cpp index f2fa91ba1f..81a4802f26 100644 --- a/modules/juce_gui_basics/windows/juce_CallOutBox.cpp +++ b/modules/juce_gui_basics/windows/juce_CallOutBox.cpp @@ -77,9 +77,7 @@ public: JUCE_DECLARE_NON_COPYABLE (CallOutBoxCallback) }; -CallOutBox& CallOutBox::launchAsynchronously (Component* content, - const Rectangle& area, - Component* parent) +CallOutBox& CallOutBox::launchAsynchronously (Component* content, const Rectangle& area, Component* parent) { jassert (content != nullptr); // must be a valid content component! @@ -170,8 +168,8 @@ void CallOutBox::updatePosition (const Rectangle& newAreaToPointTo, const R const int hw = newBounds.getWidth() / 2; const int hh = newBounds.getHeight() / 2; - const float hwReduced = (float) (hw - borderSpace * 3); - const float hhReduced = (float) (hh - borderSpace * 3); + const float hwReduced = (float) (hw - borderSpace * 2); + const float hhReduced = (float) (hh - borderSpace * 2); const float arrowIndent = borderSpace - arrowSize; Point targets[4] = { Point ((float) targetArea.getCentreX(), (float) targetArea.getBottom()),