1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Minor change to BubbleMessageComponent layout.

This commit is contained in:
jules 2012-05-25 16:50:47 +01:00
parent 87175c91f5
commit 437f4d1e63

View file

@ -86,15 +86,15 @@ void BubbleMessageComponent::init (const int numMillisecondsBeforeRemoving,
void BubbleMessageComponent::getContentSize (int& w, int& h)
{
w = 16 + (int) textLayout.getWidth();
h = 16 + (int) textLayout.getHeight();
w = 20 + (int) textLayout.getWidth();
h = 20 + (int) textLayout.getHeight();
}
void BubbleMessageComponent::paintContent (Graphics& g, int w, int h)
{
g.setColour (findColour (TooltipWindow::textColourId));
textLayout.draw (g, Rectangle<float> ((float) w, (float) h));
textLayout.draw (g, Rectangle<float> (6.0f, 6.0f, w - 12.0f, h - 12.0f));
}
void BubbleMessageComponent::timerCallback()