Review request for 7124553: [macosx] Need minimum size for titled Frames and JFrames (original) (raw)
Sergey Bylokhov sergey.bylokhov at oracle.com
Wed Feb 15 06:13:45 PST 2012
- Previous message: Review request for 7124553: [macosx] Need minimum size for titled Frames and JFrames
- Next message: Review request for 7124553: [macosx] Need minimum size for titled Frames and JFrames
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
15.02.2012 18:01, Anthony Petrov пишет:
Hi Sergey,
Thanks for the review. Indeed, the size constraints must be re-applied in this case. Please find an updated fix here: http://cr.openjdk.java.net/~anthony/x-15-frameMinSize-7124553.1/ I guess we should use peers bounds in line 596 Rectangle bounds = target.getBounds(); Is it possible to do it in the native part in the nativeSetNSWindowBounds? -- best regards, Anthony On 2/15/2012 5:36 PM, Sergey Bylokhov wrote: Hi, Anthony. What happens if small decorated nonresizable window became resizable(growbox will be shown). As far I understand window should increase its size? Correct?
15.02.2012 17:15, Anthony Petrov wrote: Hello,
Please review a fix for http://bugs.sun.com/viewbug.do?bugid=7124553 at: http://cr.openjdk.java.net/~anthony/x-15-frameMinSize-7124553.0/ With this fix we constrain the size used for setBounds() and setMinMaxSize() operations so that it always includes the size of window decorations and the grow box when they're enabled. The size of (1, 1) is considered as the smallest possible size for a window in any case. -- best regards, Anthony
-- Best regards, Sergey.
- Previous message: Review request for 7124553: [macosx] Need minimum size for titled Frames and JFrames
- Next message: Review request for 7124553: [macosx] Need minimum size for titled Frames and JFrames
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]