Browse Source

Minor change to BubbleMessageComponent layout.

tags/2021-05-28
jules 13 years ago
parent
commit
437f4d1e63
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp

+ 3
- 3
modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp 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()


Loading…
Cancel
Save