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.

Bug 135824

Summary: api review for a new switch to respect preferred size of slided-in top components
Product: platform Reporter: Stanislav Aubrecht <saubrecht>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: blocker CC: dsimonek
Priority: P2 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 135318    
Attachments: proposed patch
default behavior of slided-in windows
preferred size of slided-in window is respected
unit test

Description Stanislav Aubrecht 2008-05-26 16:11:11 UTC
the current implementation of window system enlarges all slided-in windows to the whole height/width of the main window.
for some sliding windows (tool picker, color picker etc) it desirable to maintain the original or preferred size when
slided-in
Comment 1 Stanislav Aubrecht 2008-05-26 16:13:20 UTC
Created attachment 61933 [details]
proposed patch
Comment 2 Stanislav Aubrecht 2008-05-26 16:14:49 UTC
my proposal is to define a new boolean client property for TopComponents that will force window system into respecting
TopComponent's preferred size when set to True, see attached patch
Comment 3 Stanislav Aubrecht 2008-05-26 16:21:05 UTC
Created attachment 61935 [details]
default behavior of slided-in windows
Comment 4 Stanislav Aubrecht 2008-05-26 16:22:00 UTC
Created attachment 61936 [details]
preferred size of slided-in window is respected
Comment 5 Jaroslav Tulach 2008-05-27 09:46:04 UTC
Y01 Test?
Comment 6 Stanislav Aubrecht 2008-05-27 09:50:16 UTC
Created attachment 61959 [details]
unit test
Comment 7 Stanislav Aubrecht 2008-05-27 09:50:42 UTC
(for some reason the test didn't show up in the diff patch)
Comment 8 Stanislav Aubrecht 2008-05-29 10:11:04 UTC
if there are no objections, i'll integrate tomorrow (friday 30th)
Comment 9 Stanislav Aubrecht 2008-05-30 09:06:44 UTC
done