Summary: | Dolphin 2.0 view modes are opened up misaligned (videos attached) | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Nikita Skovoroda <chalkerx> |
Component: | view-engine: general | Assignee: | Peter Penz <peter.penz19> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8.0 | |
Sentry Crash Report: | |||
Attachments: |
The video of the bug.
Video with another view-mode. Partial fix. |
Created attachment 67575 [details]
Video with another view-mode.
This somehow depends on the old viewmode (from which i switch to the affected one). On the same icons/window size table → icons is affected, but compact → icons and table → compact → icons are fine. On another case (icons/window size) table → compact and icons → compact are both misaligned. Switching to table view mode is always the same (in the context of this bug): at the very first moment columns are misaligned (scrollbars are not painted), but this is fixed much faster and without animation. Can this be fixed before 4.8.0 release? Created attachment 67915 [details]
Partial fix.
This fixes the most annoyng part of the bug: misaligned inital dolphin startup and refreshes (f5 key).
The cause was in scrollOffset always being compared to height, forgeting about scrollOrientation. It should be compared to the width when the scrollOrientation is horisontal.
Switching between views still may have items misaligned, the cause is a little different there. The old viewsize remans on the first moment after view change (if there were scrollbars in the old view, the new view size is smaller than it should be). I'm not exactly sure how to fix that. Can you please at least include the partial fix (or the cleaned up version of it) in 4.8.0? Git commit d43d0c4146cd0ab7218ed89334f220b0f4ff1398 by Peter Penz. Committed on 17/01/2012 at 23:42. Pushed by ppenz into branch 'master'. Avoid unnecessary animations when switching view modes Thanks to Nikita Skovoroda for the initial patch and the analyses. FIXED-IN: 4.8.0 M +24 -9 dolphin/src/kitemviews/kitemlistview.cpp http://commits.kde.org/kde-baseapps/d43d0c4146cd0ab7218ed89334f220b0f4ff1398 Git commit c6e0fe2000186fb77b2b48c1880309f3eaf9e9b9 by Peter Penz. Committed on 17/01/2012 at 23:42. Pushed by ppenz into branch 'KDE/4.8'. Avoid unnecessary animations when switching view modes Thanks to Nikita Skovoroda for the initial patch and the analyses. FIXED-IN: 4.8.0 M +24 -9 dolphin/src/kitemviews/kitemlistview.cpp http://commits.kde.org/kde-baseapps/c6e0fe2000186fb77b2b48c1880309f3eaf9e9b9 |
Created attachment 67574 [details] The video of the bug. Version: 2.0 (using Devel) OS: Linux See the video. Reproducible: Always Steps to Reproduce: Just switch the view mode. This depends on the window size, but can be easily reproduced (if you follow the video). Actual Results: The viewmode contents are misaligned in the first second. They are animated to being fine aligned in the next moment, unwanted animation here. Expected Results: Propertly aligned contents on initial open, no unneeded animation.