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 131489 - Fit Diagram & Fit Width left lots of space on left of diagram editor
Summary: Fit Diagram & Fit Width left lots of space on left of diagram editor
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-28 23:06 UTC by Peter Lam
Modified: 2008-09-25 22:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fit class diagram (51.21 KB, image/png)
2008-03-28 23:07 UTC, Peter Lam
Details
fit sequence diagram (37.84 KB, image/png)
2008-03-28 23:07 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-03-28 23:06:32 UTC
Build 20080327

Both Fit Diagram and Fit Width toolbar button left quite a bit of space on the left side of the diagram editor. See
attached screenshots for samples.
Comment 1 Peter Lam 2008-03-28 23:07:29 UTC
Created attachment 59326 [details]
fit class diagram
Comment 2 Peter Lam 2008-03-28 23:07:52 UTC
Created attachment 59327 [details]
fit sequence diagram
Comment 3 Peter Lam 2008-06-19 00:55:20 UTC
still exists in build 20080617
Comment 4 Sergey Petrov 2008-09-17 14:58:08 UTC
solution is to change visual library, currently Widget::private Rectangle calculatePreferredBounds always include 0-0
point into bounds.
or fix require much more calculations in uml(copy all calculations from visual library and do not include 0-0).
Comment 5 Sergey Petrov 2008-09-19 17:22:42 UTC
http://hg.netbeans.org/uml-main/rev/4be212dc3ce3  fit diagram now exclude 0-0 scene point, but scrollbar may appear
after fit.
the same will be for fit width.
Comment 6 Sergey Petrov 2008-09-19 20:03:18 UTC
http://hg.netbeans.org/uml-main/rev/4e78f73e405f fixed for fit width
Comment 7 Quality Engineering 2008-09-23 18:03:15 UTC
Integrated into 'main-golden', will be available in build *200809231435* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4e78f73e405f
User: sergeyp@netbeans.org
Log: fix #131489 now fit to width and fit diagram works better, also fix arithmetic exception in fit width if diagram is empty
Comment 8 Trey Spiva 2008-09-23 18:42:03 UTC
Reviewed
Comment 9 Peter Lam 2008-09-25 22:48:00 UTC
verified in build 20080925. much better now.