Custom PropertyComponent incorrect name position

Hey guys.

I’ve got a strange issue with the PropertyPanel. It’s rendering the property name slap bang into the middle of the property.

I’ve used the PropertyPanel and custom PropertyComponents before without issue. Any idea what could be causing this?

Capture

Kind regards
Oli

By “custom property component” do you mean that you have subclassed PropertyComponent? If so, can you post the code for that so we can see what might be the issue.

Also, do you have a custom look and feel that has overridden LookAndFeel::getPropertyComponentContentPosition()?

Hi,

Yes, subclassed PropertyComponent. No custom LookAndFeel class.

As far as projects go it’s still very barebones. Code for the custom PropertyComponent is attached.

source.cpp (2.4 KB)

Thank you