From e8a63c9de597a4063a883c1fe5cbb32463ee7443 Mon Sep 17 00:00:00 2001 From: malte_langkabel Date: Thu, 15 Oct 2015 16:41:41 +0200 Subject: [PATCH] ui: removed horizontal scrollbars in code snippets * they were still there when running coati on windows. --- src/app/qt/element/QtCodeArea.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/qt/element/QtCodeArea.cpp b/src/app/qt/element/QtCodeArea.cpp index 602a22ea..042f0845 100644 --- a/src/app/qt/element/QtCodeArea.cpp +++ b/src/app/qt/element/QtCodeArea.cpp @@ -102,6 +102,11 @@ QSize QtCodeArea::sizeHint() const block = block.next(); } + if (horizontalScrollBar()->isVisible()) + { + height += horizontalScrollBar()->height(); + } + return QSize(320, height + 1); }