1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

ToolbarButton fix.

This commit is contained in:
jules 2012-06-25 11:11:52 +01:00
parent 18cfadf898
commit ce513dc37d
2 changed files with 1 additions and 4 deletions

View file

@ -73,6 +73,7 @@ void ToolbarButton::updateDrawable()
{
if (currentImage != nullptr)
{
currentImage->setInterceptsMouseClicks (false, false);
currentImage->setTransformToFit (getContentArea().toFloat(), RectanglePlacement::centred);
currentImage->setAlpha (isEnabled() ? 1.0f : 0.5f);
}

View file

@ -36,10 +36,6 @@ public:
{
}
~ToolbarSpacerComp()
{
}
bool getToolbarItemSizes (int toolbarThickness, bool /*isToolbarVertical*/,
int& preferredSize, int& minSize, int& maxSize)
{