JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: TextEditor::textToShowWhenEmpty doesn't consider borderSize when drawn

Open liamlacey opened this issue 1 year ago • 0 comments

Detailed steps on how to reproduce the bug

Give a TextEditor object a non-zero border size (specifically a non-zero left border size) using TextEditor::setBorder - this results in the textToShowWhenEmpty position being different from the main text position.

What is the expected behaviour?

textToShowWhenEmpty should consider borderSize when being drawn, so that it appears in the same position as the main text.

Operating systems

macOS

What versions of the operating systems?

Ventura 13.2.1

Architectures

ARM

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

liamlacey avatar Sep 04 '23 09:09 liamlacey