After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 45588 - Switching sort criterion leaves scroll position somewhere arbitrary
Switching sort criterion leaves scroll position somewhere arbitrary
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: Icon View
2.22.x
Other Linux
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 47632 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-01-11 22:55 UTC by John Sullivan
Modified: 2008-10-12 15:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for this bug (1.36 KB, patch)
2008-10-06 11:32 UTC, Nelson Benitez
committed Details | Review

Description John Sullivan 2001-09-10 00:51:20 UTC
This may have gotten worse due to my recent changes to fix scrolling region
problems, but I think the basic problem was always there.

To reproduce:
(1) Launch Nautilus and switch to icon view if necessary. Make sure there are
enough icons that the vertical scroll bar is visible. (Find another more crowded
directory otherwise.)
(2) Choose View->Lay out->manually
(3) Choose View->Lay out->by Name

In a sensible world the window would end up scrolled to the top. But in our
world that does not happen. I think this is a must-fix for 1.0, possibly for
PR3.



------- Additional Comments From darin@bentspoon.com 2001-01-15 12:21:40 ----

A quick fix for this is probably to force a scroll to the top each time we re-layout.



------- Additional Comments From don@eazel.com 2001-02-07 14:00:22 ----

I could live with this if we don't fix it for 1.0.




------- Additional Comments From don@eazel.com 2001-02-15 23:51:51 ----

Not a 1.0 blocker.




------- Additional Comments From sullivan@eazel.com 2001-03-09 15:24:12 ----

See also related bug 47632.



------- Additional Comments From eli@eazel.com 2001-03-26 11:11:39 ----

QA Assigning to self.



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 20:51 -------

The original owner (engber@eazel.com) of this bug does not have an account here.
Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.

Comment 1 John Fleck 2002-01-05 04:12:59 UTC
Changing to "old" target milestone for all bugs laying around with no milestone set.
Comment 2 Aschwin van der Woude 2002-11-06 23:10:22 UTC
The current behaviour seems more fair to me, showing aproximately the
same files as before the change of layout-order.
But the usability-team has probably better ideas on the correct behaviour.
Comment 3 Aschwin van der Woude 2002-11-17 10:08:56 UTC
*** Bug 47632 has been marked as a duplicate of this bug. ***
Comment 4 Calum Benson 2002-11-22 14:39:18 UTC
I haven't played with this to see exactly how it behaves now, but my
guess is that the appropriate behaviour would be to ensure that the
last item you selected was still visible after a re-layout, preferably
in roughly the same position within the view as it was before.  

If no items were selected, scrolling to the top might be a reasonable
default.  Or perhaps ensuring that whatever item was deemed to be 'in
the middle' of the view before the layout switch was still 'in the
middle' afterwards, or as near as you could make it.  Would probably
need to play with a bit to decide which of these behaviours was less
annoying :)
Comment 5 Nelson Benitez 2008-10-06 11:32:26 UTC
Created attachment 120016 [details] [review]
Patch for this bug

Hi, I'm attaching a patch for this issue, it reveals the selection after the user sorts by some type or clicks the "reverse order" sort action.
Comment 6 Nelson Benitez 2008-10-12 15:01:23 UTC
I commited the patch, marking this as fixed.