From 6be542394a31d876980cefeaf18dd909829be079 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 19 Nov 2020 16:23:43 +0100 Subject: [PATCH] overflows when clipping fixed --- src/controls/QskTabBar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controls/QskTabBar.cpp b/src/controls/QskTabBar.cpp index cb506020..b4897815 100644 --- a/src/controls/QskTabBar.cpp +++ b/src/controls/QskTabBar.cpp @@ -144,8 +144,10 @@ namespace Often the current tab button grows beyond the bounding rectangle of the tab bar, so that it looks like being on top of the tab page border. So we only want to clip in scroll direction. + Note: std::numeric_limits< int >::max() does not work - guess + some overflow somewhere ... */ - constexpr qreal expanded = std::numeric_limits< int >::max(); + constexpr qreal expanded = 0.90 * std::numeric_limits< int >::max(); if ( flickableOrientations() & Qt::Horizontal ) {