# setTransformToFit documentation suggestion

**URL:** <https://forum.juce.com/t/settransformtofit-documentation-suggestion/43256>\
**Category:** General JUCE discussion\
**Created:** [December 15, 2020, 11:24am UTC](https://forum.juce.com/t/settransformtofit-documentation-suggestion/43256 "2020-12-15T11:24:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [December 15, 2020, 2:19pm UTC](https://forum.juce.com/t/settransformtofit-documentation-suggestion/43256/7 "2020-12-15T14:19:50Z")

</div>

IIUC you need the setBounds to control the drawables paint() method, while for the draw() you might not need it.  
But in the past I had often unexpected results because of this duality between Drawable and Component. Seems the setBoundsToFit and other methods that modify the transformation moves the result out of the setBounds() area. I know that is to be expected, but I didn’t understand how it is used in a controlled manner (and unusally I have no trouble understanding matrices and transformations).

This is the second reason why I filed this feature request, feel free to support it here:

> [@Make Drawables not inherit Component](https://forum.juce.com/t/make-drawables-not-inherit-component/36191):
>
> Since Drawables inherit Component, they are often limited to be used on the message thread. Feature request: Move the Drawable functionality to independent classes, maybe DrawPrimitive or whatever name, and make the Drawable and it’s descentants a wrapper around that new classes for backward compatibility.

---

_[View the full topic](https://forum.juce.com/t/settransformtofit-documentation-suggestion/43256)._
