| Summary: | Selected item should stay centered in thumbnail bar | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Tom Albers <toma> |
| Component: | Showfoto-Thumbs | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 7.6.0 | |
| Sentry Crash Report: | |||
|
Description
Tom Albers
2005-04-16 19:42:30 UTC
SVN commit 452180 by toma:
Keep the thumbnail completely visible and the next one as well. I heard from the bugreporter that he is extremely happy and will buy a pizza for me.
BUG: 104031
M +5 -1 thumbbar.cpp
--- trunk/extragear/graphics/digikam/libs/thumbbar/thumbbar.cpp #452179:452180
@@ -178,7 +178,11 @@
d->currItem = item;
if (d->currItem)
{
- ensureVisible(0,item->m_pos);
+ // We want the complete thumb visible and the next one.
+ // find the middle of the image and give a margin of 1,5 image
+ // When changed, watch regression for bug 104031
+ ensureVisible(0, (int)(item->m_pos+d->margin+d->tileSize*.5),
+ 0, (int)(d->tileSize*1.5+3*d->margin));
item->repaint();
emit signalURLSelected(item->url());
}
|