DrawableButton not accepting DrawableComposite bounds


My drawable is like a sprite of different paths for each button. I am trying to position the bounds of the drawable to show only the part that I want to be displayed on the button, however, it doesn’t seem to do this.

I can’t seem to get the bounding box of a DrawableComposite to be drawn to a DrawableButton:

Hopefully, someone else has done this successfully.

DrawableButton  _aButton   { "button1", DrawableButton::ButtonStyle::ImageFitted }
_typeDrawableOn = Utility::getDrawable(BinaryData::type_on_svg, 0.2f);
_svgDrawable.reset (dynamic_cast<DrawableComposite*> (_typeDrawableOn));
if (_svgDrawable.get() != nullptr)_svgDrawable->setBoundingBox ({ 0.0f, 0.0f, 20.0f, 20.0f });