Bug 152615

Summary: changing viewport of Album when opening panels
Product: [Applications] digikam Reporter: Mikolaj Machowski <mikmach>
Component: Albums-MainViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 0.9.3   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0
Sentry Crash Report:

Description Mikolaj Machowski 2007-11-20 23:06:37 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc4.3 
OS:                Linux

When opening panels viewport of Album is changed - it moves upward.

The main consequence is vanishing of selected image from view. For best reproduction select album with many pictures (requiring several PagesDown to go to the bottom) and select last  image. Then open and close several times eg. Properties panel. In many situations picture vanishes after just one round. After many rounds you can go to the top of album.

Selected album should stay visible.
Comment 1 Paweł Marciniak 2007-11-21 01:21:35 UTC
The problem is caused by the fact that in IconView::slotRearrange(), IconView::ensureItemVisible() is called with d->storedVisibleItem as a parameter. That variable is previously set to findFirstVisibleItem() in IconView::triggerRearrangement();

As a result, when changing the IconView size from A to B, visibility in B is set to the first item that was visible in A size, instead of the current item.
Comment 2 caulier.gilles 2007-11-21 05:38:43 UTC
Pawel,

Patch are always welcome from you... (:=)))

Gilles
Comment 3 Mikolaj Machowski 2007-11-21 19:38:35 UTC
There is very similar bug with text filtering. After clearing of field
viewport jumps up. This is not the case with filetype and rating
filtering - selected item stays visible.
Comment 4 Andi Clemens 2009-10-20 17:48:44 UTC
Is this bug valid? In dolphin for example a selected item is not staying in the exact position either, when opening panels (for example F11: Information).
Comment 5 caulier.gilles 2011-12-14 09:26:17 UTC
Mik, Pawel,

This file still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 6 caulier.gilles 2013-11-25 17:14:56 UTC
Mik, Pawel,

This file still valid using digiKam 3.5.0 ?

Gilles Caulier
Comment 7 caulier.gilles 2015-06-30 08:08:04 UTC
New digiKam 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 8 caulier.gilles 2016-07-14 17:02:40 UTC
With digiKam 5.0.0  this problem is not reproducible.
I close this file now. Don't hesitate to re-open if necessary.
Gilles Caulier