Hi,
It seems like the border for TextEditor is inverted horizontally for the “text to show when empty”.
addAndMakeVisible(editor);
editor.setJustification(juce::Justification::centred);
editor.setTextToShowWhenEmpty("xxx", juce::Colours::grey);
juce::BorderSize<int> border;
border.setLeft(50);
editor.setBorder(border);
editor.setBounds(0, 0, 200, 50);
Below is with border.setLeft(0)
Below is with border.setLeft(50), notice the text incorrectly moves to the left instead of to the right.
Below is with border.setLeft(50) after you start typing. This behaves correctly.
I hope this can be fixed :), thanks.
Best,
Jelle



