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:
parent
87175c91f5
commit
437f4d1e63
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue