From 1d7017451945477ae15634e392125a8bc301ebfa Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 2 Sep 2024 12:29:09 -0400 Subject: [PATCH] Enough room for the bounding rect --- include/sst/jucegui/components/TabbedComponent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sst/jucegui/components/TabbedComponent.h b/include/sst/jucegui/components/TabbedComponent.h index 6c619bb..16fb6b0 100644 --- a/include/sst/jucegui/components/TabbedComponent.h +++ b/include/sst/jucegui/components/TabbedComponent.h @@ -81,6 +81,8 @@ struct TabbedComponent : juce::TabbedComponent, style::StyleConsumer const auto &st = parentComp->style(); + auto b = getLocalBounds().withHeight(getHeight() + 10).reduced(1); + if (isFrontTab()) { if (hover) @@ -88,7 +90,6 @@ struct TabbedComponent : juce::TabbedComponent, style::StyleConsumer st->getColour(Styles::styleClass, Styles::tabSelectedFillColor_hover)); else g.setColour(st->getColour(Styles::styleClass, Styles::tabSelectedFillColor)); - auto b = getLocalBounds().withHeight(getHeight() + 5); g.fillRoundedRectangle(b.toFloat(), 4); g.setColour(st->getColour(Styles::styleClass, Styles::tabSelectedFillColor_hover)); g.drawRoundedRectangle(b.toFloat(), 4, 1); @@ -99,7 +100,6 @@ struct TabbedComponent : juce::TabbedComponent, style::StyleConsumer else { g.setColour(st->getColour(Styles::styleClass, Styles::tabUnselectedOutlineColor)); - auto b = getLocalBounds().withHeight(getHeight() + 5); g.drawRoundedRectangle(b.toFloat(), 4, 1); if (hover)