View: Adjust top margin when needed
authorSoeren Apel <soeren@apelpie.net>
Tue, 30 May 2017 06:07:50 +0000 (08:07 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Tue, 30 May 2017 18:10:15 +0000 (20:10 +0200)
When the view is big and the traces are vertically centered,
there will be blank space above and below the block of traces.
When the user then resizes the window and makes it smaller,
the white space stays, pushing traces out of the view that
could fit on-screen if the blank space was adjusted properly.

This is what we do with this patch.

If there is still enough space to make everything fit, we
center the traces vertically. If there's not enough space
to make everything fit, we make sure that the top traces
are shown.


No differences found