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 105009 - Scene jumps(shifts) on selection if widget isn't fully visible
Summary: Scene jumps(shifts) on selection if widget isn't fully visible
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@platform
Depends on: 101523
Blocks: 105060
  Show dependency tree
Reported: 2007-05-29 10:56 UTC by Sergey Petrov
Modified: 2007-06-07 13:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2007-05-29 10:56:46 UTC
reproducible with 070523

you can easily reproduce the issue with test.scroll.ScrollTest

steps for scene jumps on widget selection:
1. start test.scroll.ScrollTest
2. Zoom In with mouse wheel in a way that only 1/9 of widget with scrolling
remains visible
3. try to click on resize button (blue square)
scene jumps
In my case (my application) widget on a scene has associated Move Action  and
after click jumps to new location too.
Comment 1 David Kaspar 2007-05-29 15:20:07 UTC
It is a feature. Everytime any action locks the event processing (MoveAction,
...), then the view is scrolled to show the locked widget completely if possible.

Currently there is no option for disabling this auto-scroll behavior. To fix it,
there has to be an option added to the Scene class. Or there would have to be
sort of "auto-scroll-on-select" action created.
Comment 2 Sergey Petrov 2007-05-29 16:00:50 UTC
Strange feature...
because of unexpected click result, in suggested steps it may lead to unexpected
resize and in my case it moves objects
it will be good If I will be able to disable this feature
it also may lead to more standard way when scrolling activated on mouse
approaching to area border, when now scrolling is activated just after attempt
to move any widget behind visible area (it's was a be surprise for me when I
start using library), In our work for example we often use OpenOffice as a
baseline, and I see no move to activated object here, and I see scroll on area
border only here (if mouse is used, It may have sense to scroll if object is
selected by keyboard but it may be application dependent and not to be
implemented in library).
Comment 3 David Kaspar 2007-05-29 16:13:31 UTC
Sounds reasonable. I will look at particular steps, after issue #101523 would be
be fixed. This issue affect the scrolling mechanism, so I do not want to create
two conflicting patches.
Comment 4 Sergey Petrov 2007-06-03 06:51:46 UTC
Yes, this one describe similar  to 101523 behavior, but suggest a bit another
write now if I have widget on a border and apply resize border (using select
action) widget jumps and even may moves a bit and corrupt my carefully adjusted
diagram layout, didn't try with patch from 101523 yet
Comment 5 David Kaspar 2007-06-04 13:11:16 UTC
I have not tried your use-case with the patch too but I think it should work.
Comment 6 David Kaspar 2007-06-05 10:17:46 UTC
Settings as fixed since the issue #101523 has been fixed. Please, could you
verify it with tomorrow's build. If the problem still remains, reopen the issue.
Comment 7 Sergey Petrov 2007-06-05 19:46:59 UTC
ok, widget seems to stay where it was, but scene jumps ( but scene still jumps,
ok, may be considered as a feature but see next)
may be I'll file separate issue to track case with resizing: i.e. if I click on
resize square scene jumps and have cursor over unexpected location, I can
continue resizing and it works fine (i.e. no big size changes as it was before,
but cursor position is confusing)
I also file new issue with widgets jumps
Comment 8 David Kaspar 2007-06-07 13:02:42 UTC
With a new scrolling logic, the scene does not jump while you selecting a widget.