https://bugs.kde.org/show_bug.cgi?id=524143

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/42080f7
                   |                            |9ba2445314d557a765015cd9a09
                   |                            |ae62de
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Méven <[email protected]> ---
Git commit 42080f79ba2445314d557a765015cd9a09ae62de by Méven Car.
Committed on 17/08/2026 at 10:32.
Pushed by meven into branch 'master'.

kitemviews: Keep the same files in view when toggling split view

Opening the split view halves the width of the other pane. The icons
layout then reflows into fewer columns, so the list becomes taller and
every item moves, while the scroll offset stayed at the pixel it was and
pointed at a different part of the folder.

Hold on to the item at the top of the view and put it back where it was
once the new positions are known. The item is held for the whole
sequence of resizes a split does, rather than taken again each time,
because a reflow moves where the top row begins: taking the topmost item
each time made toggling the split view creep towards the start of the
folder by a row a time.

M  +27   -0    src/kitemviews/kitemlistview.cpp
M  +10   -0    src/kitemviews/kitemlistview.h
M  +12   -0    src/kitemviews/private/kitemlistviewlayouter.cpp
M  +9    -0    src/kitemviews/private/kitemlistviewlayouter.h
M  +1    -1    src/tests/CMakeLists.txt
M  +110  -0    src/tests/dolphinitemlistviewtest.cpp

https://invent.kde.org/system/dolphin/-/commit/42080f79ba2445314d557a765015cd9a09ae62de

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to