diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-05-10 16:01:58 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-11 07:33:31 -0700 |
commit | 3edec7c97dac71f288d65fd0e86fc14c69649d9d (patch) | |
tree | 10723d3565341e2700c6045889e6d0fdc10d3f2c /dive.h | |
parent | 9523132b6da30231b3c56f3ee203a97b8a69c34f (diff) | |
download | subsurface-3edec7c97dac71f288d65fd0e86fc14c69649d9d.tar.gz |
Fix initial scrolling problem
The initial selection change signal seems to potentially be sent
before the listview is even visible when we do the first "scrollTo()"
to the currently selected dive.
That, in turn, seems to result in that when the listview is actually
shown, it will be scroll the trip description off the visible area,
and force the current dive to be shown at the very top of the
divelist. Which is not very nice: we do want to scroll to the current
dive, but we don't want to hide the current trip in the process.
Ignoring the selection change if the listview isn't even visible seems
to fix things for me.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions