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 - api review for a new switch to respect preferred size of slided-in top components
Summary: api review for a new switch to respect preferred size of slided-in top compon...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks: 135318
  Show dependency tree
 
Reported: 2008-05-26 16:11 UTC by Stanislav Aubrecht
Modified: 2008-12-22 10:50 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
proposed patch (16.77 KB, patch)
2008-05-26 16:13 UTC, Stanislav Aubrecht
Details | Diff
default behavior of slided-in windows (79.65 KB, image/png)
2008-05-26 16:21 UTC, Stanislav Aubrecht
Details
preferred size of slided-in window is respected (92.94 KB, image/png)
2008-05-26 16:22 UTC, Stanislav Aubrecht
Details
unit test (4.04 KB, text/plain)
2008-05-27 09:50 UTC, Stanislav Aubrecht
Details

Note You need to log in before you can comment on or make changes to this bug.
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