From: Soeren Apel Date: Tue, 30 May 2017 06:07:50 +0000 (+0200) Subject: View: Adjust top margin when needed X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=8a5fd81fea577663e8c0f17e53d5928599d0926d;hp=8a5fd81fea577663e8c0f17e53d5928599d0926d;p=pulseview.git View: Adjust top margin when needed 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. ---