Problem summary
Non-modal panel does not adhere to setMinimumSize(). When creating a non-modal panel the setMinimumSize() function does not actually work. No minimum size is set.
Customer reported version
nuke.n/a
Customer reported platform
Steps to reproduce
1) Open Nuke
2) Open Script Editor
3) Paste the following script and run it:
class NMPanel( nukescripts.PythonPanel ):
nukescripts.PythonPanel.__init__( self, "text", "moretext" )
self.times = nuke.Int_Knob( "input", "number" )
self.addKnob( self.times )
mypanel = NMPanel()
mypanel.setMinimumSize(300,500)
mypanel.show()
4) Grab the edge of the window with the cursor and shrink it.
Result: The window can shrink down beyond the minimum size
Workaround
Unknown.
Reproduced by support
This bug has been reproduced in:
11.0v3 - Windows 10, OSX 10.13, Centos 7.3
11.0v1 - Windows 10, OSX 10.13, Centos 7.3
10.5v7 - Windows 10, OSX 10.13, Centos 7.3
10.5v1 - Windows 10, OSX 10.13, Centos 7.3
10.0v6 - Windows 10, OSX 10.13, Centos 7.3
10.0v1 - Windows 10, OSX 10.13, Centos 7.3
9.0v9 - Windows 10, OSX 10.13, Centos 7.3
9.0v4 - Windows 10, OSX 10.13, Centos 7.3
8.0v7 - Windows 10, OSX 10.13, Centos 7.3
8.0v1 - Windows 10, OSX 10.13, Centos 7.3
7.0v10 - Windows 10, OSX 10.13, Centos 7.3
Unable to reproduce bug in:
9.0v3 - Windows 10, OSX 10.13, Centos 7.3
9.0v1 - Windows 10, OSX 10.13, Centos 7.3
Earliest version tested
Nuke 7.0v10 - Windows, OSX 10.13, Centos 7.3 - The issue appears in almost all releases of Nuke tested, and as such its likely present in most versions.
Expected behaviour
Non-Modal window minimum size value should be respected.
Actual behaviour
Window can be resized below the minimum size value.