Skip to content

[Bug]: setResizeLimits does not work from 8.0.2 onwards #1645

@javierortizmi

Description

@javierortizmi

Detailed steps on how to reproduce the bug

Compiling for Ubuntu 24.04, changing the main window size, does not respect limits set with setResizeLimits, starting from version 8.0.2 onwards.

MainWindow(String name, String version, AppContext& context)
            : DocumentWindow(name, 
                            Desktop::getInstance().getDefaultLookAndFeel().findColour(ResizableWindow::backgroundColourId),
                            allButtons),
            m_context(context)
    {
        setUsingNativeTitleBar(true);
        setResizable(true, true);
        setResizeLimits(600, 400, 1000, 800);
        centreWithSize(800, 600);
        setVisible(true);
        
        setContentOwned(new MainLayout(m_context), false);
    }

What is the expected behaviour?

Not being able to change main window size outside limits set with setResizeLimits

Operating systems

Linux

What versions of the operating systems?

Ubuntu 24.04

Architectures

x86_64

Stacktrace

Plug-in formats (if applicable)

No response

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

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions