# BR: TooltipWindow gets its scale from the component under the mouse

**URL:** <https://forum.juce.com/t/br-tooltipwindow-gets-its-scale-from-the-component-under-the-mouse/49190>\
**Category:** General JUCE discussion\
**Created:** [December 10, 2021, 8:17pm UTC](https://forum.juce.com/t/br-tooltipwindow-gets-its-scale-from-the-component-under-the-mouse/49190 "2021-12-10T20:17:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [December 10, 2021, 8:17pm UTC](https://forum.juce.com/t/br-tooltipwindow-gets-its-scale-from-the-component-under-the-mouse/49190/1 "2021-12-10T20:17:25Z")

</div>

Where the `TooltipWindow` gets its scale needs to be configurable. Options should be desktop (so they are always the same size), a specific component or the current behaviour.

The issue is in our app, when you mouse over a component we apply a transform to give it a zoom effect. The tooltip is sized based on the component before the zoom is applied. Then the tooltip repaints once it is created and now the scale of the component under the mouse is different, so the text draws bigger and doesn’t fit in the window that was created.

---

<div class="post-metadata">

**Author:** ![rcohen](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rcohen](https://forum.juce.com/u/rcohen)\
**Post date:** [February 18, 2023, 8:12pm UTC](https://forum.juce.com/t/br-tooltipwindow-gets-its-scale-from-the-component-under-the-mouse/49190/2 "2023-02-18T20:12:09Z")

</div>

We have a similar problem in our plugin, where a single component has a transform applied (with an affine transform scale). The tooltip for this component is very small (unreadable).

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [July 31, 2025, 4:46pm UTC](https://forum.juce.com/t/br-tooltipwindow-gets-its-scale-from-the-component-under-the-mouse/49190/3 "2025-07-31T16:46:04Z")

</div>

This is still broken and the tool tip doesn’t appear in the correct location

[![](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/2/8/287bf1a7db70c1740e08a44c55a9c64aa9604319.jpeg "Tooltip") ](https://www.youtube.com/watch?v=Z1XkmbJPHww)

> <https://github.com/FigBug/juce_bugs/blob/master/Tooltip/Source/MainComponent.h>

---

<div class="post-metadata">

**Author:** ![Toddler-Boy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/toddler-boy/32/2007_2.png) [@Toddler-Boy](https://forum.juce.com/u/Toddler-Boy)\
**Post date:** [July 31, 2025, 9:42pm UTC](https://forum.juce.com/t/br-tooltipwindow-gets-its-scale-from-the-component-under-the-mouse/49190/4 "2025-07-31T21:42:19Z")

</div>

The fix is straightforward: the `juce::Tooltip` class needs to lose its `getDesktopScaleFactor` override. The `juce::Component` function is already doing the right thing.

Now it works regardless of whether the tooltip is attached to a parent or not. The right position and scale by removing code.
