JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: Wrong editor size when calling setGlobalScaleFactor early in Bitwig/Linux

Open bertomaudio opened this issue 7 months ago • 1 comments
trafficstars

Detailed steps on how to reproduce the bug

  • Create a new plugin with the Projucer.
  • Add juce::Desktop::getInstance().setGlobalScaleFactor (0.5f); in the editor constructor.
  • Open the VST3 plugin in Bitwig: the editor component is too small, smaller than the plug-in window itself. Half the size actually. The scale and the size of the window seem correct.

Image

It only happens if setGlobalScaleFactor is called early. Calling it after a delay works fine.

I am still using JUCE 7.0.12, but it also happens with JUCE 8 develop branch.

What is the expected behaviour?

The editor component should stay the same (virtual) size, but scaled.

Operating systems

Linux

What versions of the operating systems?

Linux Mint 22.1 Cinnamon. I also got a user report for Manjaro. It probably happens on most Linux distros.

Architectures

x86_64

Stacktrace


Plug-in formats (if applicable)

VST3

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

Bitwig Studio 5.3.2

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

bertomaudio avatar Apr 06 '25 09:04 bertomaudio