Merge lp:~brandontschaefer/unity/lp.1175666-fix2 into lp:unity

Proposed by Brandon Schaefer
Status: Merged
Approved by: Christopher Townsend
Approved revision: no longer in the source branch.
Merged at revision: 3413
Proposed branch: lp:~brandontschaefer/unity/lp.1175666-fix2
Merge into: lp:unity
Diff against target: 12 lines (+3/-0)
1 file modified
dash/ScopeView.cpp (+3/-0)
To merge this branch: bzr merge lp:~brandontschaefer/unity/lp.1175666-fix2
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+173290@code.launchpad.net

Commit message

Correctly set back the filter scroll views state when leaving/entering the scope view.

Description of the change

Old branch:
https://code.launchpad.net/~brandontschaefer/unity/lp.1175666-fix/+merge/172921

So when the scope view is changing visibility we have 2 different states.

1) We are changing the scope view visibility to true. If this is the case, we need to check if the filter is expanded, if it is expanded we set the filter scroll view to true.

2) We are changing the scope view visibility to false. If so, we just set the filter scroll view to false.

So when we set the filter scroll view to false in step 2 and we re-enter the scope view we can now safely set the filter scroll views visibility back to its state before leaving.

This way the filter scroll view isn't being left visible while its not being rendered. This was causing the overlay scroll bars to think it was visible, which caused them to render at odd times.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Code looks good, merges and compiles cleanly, and no funky scroll views:)

I also didn't see any weird regressions as seen in the first fix for this.

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dash/ScopeView.cpp'
2--- dash/ScopeView.cpp 2013-07-05 12:38:49 +0000
3+++ dash/ScopeView.cpp 2013-07-05 23:03:27 +0000
4@@ -224,6 +224,9 @@
5
6 OnVisibleChanged.connect([&] (nux::Area* area, bool visible) {
7 scroll_view_->SetVisible(visible);
8+
9+ if ((filters_expanded && visible) || !visible)
10+ fscroll_view_->SetVisible(visible);
11 });
12 }
13