This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Vertical window resize fails for non-native Window decorations | ||
---|---|---|---|
Product: | platform | Reporter: | wzberger <wzberger> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | maxnitribitt |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Metal2LookAndFeel
Proposed patch |
Description
wzberger
2009-01-26 20:03:05 UTC
Created attachment 76248 [details]
Metal2LookAndFeel
Reassigning to platform. Proposed patch: remove setBounds method in MainWindow The problem is that the decorations use the setBounds Method that MainWindow overrides to fix a bug with SDI: /** * don't allow smaller bounds than the one constructed from preffered sizes, making sure everything is visible when * in SDI. #40063 */ @Override public void setBounds(Rectangle rect) { Rectangle bounds = rect; if (bounds != null) { if (bounds.height < getPreferredSize().height) { bounds = new Rectangle(bounds.x, bounds.y, bounds.width, getPreferredSize().height); } } super.setBounds(bounds); } Commenting the setBounds Method fixes the problem. Since SDI has been removed a long time ago, is there still a reason to override setBounds? Thanks Toni Created attachment 76710 [details]
Proposed patch
fixed by rolling back fix for #40063, thanks for the patch daf24180c08a Hi Stan, thanks for taking care of this! Is there a chance to get this into 6.5 as well? Toni i've added appropriate flag but our sustaining dept has been axed a lot so it'll take some time to produce patch3 for nb 65 Integrated into 'main-golden', will be available in build *200902130336* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/daf24180c08a User: S. Aubrecht <saubrecht@netbeans.org> Log: #157463 - Vertical window resize fails for non-native Window decorations seems ok marking verified backporting the fix to release65_fixes: 05fd24ca5025 |