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 36128

Summary: [2003-09-26] Redefine sizes of drop areas (DnD)
Product: platform Reporter: Peter Zavadsky <pzavadsky>
Component: Window SystemAssignee: Peter Zavadsky <pzavadsky>
Status: RESOLVED FIXED    
Severity: blocker CC: dpavlica
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 36118    
Attachments: The drop areas of windows/tabs.

Description Peter Zavadsky 2003-09-16 17:04:58 UTC
There is a problem that current size of dropping
areas (those ones at the sides) are too small (6
pixels) and causes sometime problem to manage the
desired drop, on the other hand there is necessary
to keep in mind that those areas was shrunk due to
allowing comfortable DnD of tabs.
Comment 1 jrojcek 2003-09-25 16:33:01 UTC
To fix the problem we need to define proportional drop areas inside
targeted windows/tabs. Please look at the attached image below. It
defines five areas whose size is following:

- The top area height is 10 pixels
- The bottom area height is 25% of the window height
- The left area width is 25% of the leftmost tab width but not more
than 30 pixels
- The right area width is 25% of the rightmost tab width but not more
than 30 pixels
- Each line dividing the center area into pieces (defining the final
tab order) goes through the center of each tab.

============================

Another enhancements are done when dropping a window outside of the
window area (no image is attached):

- The top area covers the whole main toolbar and main menu, plus 20
pixels above (which should be the main title bar)
- The left area exceeds 20 pixels over the left edge of main window to
the left
- The right area exceeds 20 pixels over the right edge of main window
to the right
- The bottom area covers whole status line plus 20 pixels below the
status line

=========================

Also drop size is enhanced when dragging a view window into document area:

- The top area is 20 pixels height
- The left area is 20 pixels width
- The right area is 20 pixels width
- The bottom area is 20 pixels height

=========================

Finally we do the same when dragging a document windows into the view
area (over the edges of document area):

- The top area is 20 pixels height
- The left area is 20 pixels width
- The right area is 20 pixels width
- The bottom area is 20 pixels height
Comment 2 jrojcek 2003-09-25 16:43:37 UTC
Created attachment 11716 [details]
The drop areas of windows/tabs.
Comment 3 Peter Zavadsky 2003-09-26 13:01:03 UTC
Fixed in winsys_29836

core/windows/../windows/Constants.java 1.1.2.15
                       /view/dnd/WindowDnDManager.java 1.1.2.29
                            /ui/tabcontrol/TabbedAdapter.java 1.1.2.19


Note: I discovered some problems, according to the outside area... the
events aren't just coming.. I don't know what has changed in DnD
framework impl.. but this seems to be a problem... please report
configuration you experience it on.