Merge lp:~tpeeters/ubuntu-ui-toolkit/lessHeaderDisabling into lp:ubuntu-ui-toolkit/staging
| Status: | Merged |
|---|---|
| Approved by: | Zsombor Egri on 2015-11-19 |
| Approved revision: | 1723 |
| Merged at revision: | 1720 |
| Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/lessHeaderDisabling |
| Merge into: | lp:ubuntu-ui-toolkit/staging |
| Diff against target: |
126 lines (+61/-4) 2 files modified
src/Ubuntu/Components/plugin/ucheader.cpp (+7/-2) tests/unit_x11/tst_components/tst_header.qml (+54/-2) |
| To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/lessHeaderDisabling |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Zsombor Egri (community) | 2015-11-17 | Approve on 2015-11-19 | |
| Victor Thompson (community) | Approve on 2015-11-19 | ||
| PS Jenkins bot | continuous-integration | Approve on 2015-11-18 | |
| Andrew Hayzen (community) | functional | Approve on 2015-11-18 | |
|
Review via email:
|
|||
Commit Message
Don't set the header.moving property when flickable contents height changes but the header does not actually move.
Description of the Change
Please review, but don't top-approve yet. Let's discuss if this should be a hotfix that goes directly to trunk.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1718
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Tim Peeters (tpeeters) wrote : | # |
Yes, I used this program to test it: http://
When the contents height of the flickable is changed, and the new content height is smaller than the flickable height (so scrolling is no longer possible), header.show() is called in UCHeader.cpp in order to avoid getting in a state where the header is hidden while you cannot scroll the flickable to reveal it again. Only in this case that is not needed because the header was already visible, but still show() sets the moving property to true for just an instance, and when moving, the contents of the header is disabled (to avoid tapping a button by accident while the header moves). That is now avoided with my changes.
| Andrew Hayzen (ahayzen) wrote : | # |
When testing with the music-app revision 940 (before we added a workaround) this branch now does not disable the header while the view is changing.
However I have noticed if you scroll down the list, then perform a search, you sometimes get the header being disabled. This seems to be when many items are cleared at once, but is much better than before. Is there anyway this case can be fixed as well or is this not avoidable?
- 1719. By Tim Peeters on 2015-11-18
-
fix second part of the bug (scrolling); add unit tests
- 1720. By Tim Peeters on 2015-11-18
-
remove new blank line
- 1721. By Tim Peeters on 2015-11-18
-
comment in unit test file
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1720
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Andrew Hayzen (ahayzen) wrote : | # |
This now appears to fix the issue of the header being disabled when the view is resizing while typing in a search field.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1721
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
Click here to trigger a rebuild:
http://
- 1722. By Tim Peeters on 2015-11-18
-
kick jenkins. It passed for r1720 and failed for r1721, the difference was the text in a comment
- 1723. By Tim Peeters on 2015-11-18
-
formatting
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1723
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Victor Thompson (vthompson) wrote : | # |
In order to source the built plugins I need to make the following change to the export_
bzr diff
=== modified file 'export_
--- export_
+++ export_
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://
#
-. `dirname $0`/build_paths.inc
+. ./build_paths.inc
export QML_IMPORT_
export QML2_IMPORT_
export UBUNTU_
Otherwise, this works great!
| Zsombor Egri (zsombi) wrote : | # |
Ok, code looks good, and I got convinced now that it fixes the issues. Thanks!
| Tim Peeters (tpeeters) wrote : | # |
Thanks for the review zsombi.
Victor, I never encountered the issue that you have with export_
| Andrew Hayzen (ahayzen) wrote : | # |
For reference, I have reported bug 1518106 to track the export_

Are you sure this makes it working? Text input is made inactive while typed in it... was that disabled because the Flickable underneath was refilled?