How do I prevent Slider TextBox from changing size on focus

The Slider TextBox seems to slightly change size of the border and the text inside when being edited. I was wondering how to prevent this.

image

image

In the second image, both the border and the text change size.

The Slider TextBox is a juce::Label and when it becomes editable it creates a juce::TextEditor on top. You will have to look into the LookAndFeel methods of TextEditor and Label and make sure the implementation fits each other.

It is unfortunate that you have to do that, it seems it was not on the radar when writing the LookAndFeels.

1 Like

I’m actually struggling just to get the label and the text box to line up here.