diff --git a/src/QmlControls/ScreenTools.qml b/src/QmlControls/ScreenTools.qml index cf7bd85d5a6e0a31785185a1c11dcb8d37046b0f..5e3ba770228d1c9e874155c028ec5a4adb0ac22e 100644 --- a/src/QmlControls/ScreenTools.qml +++ b/src/QmlControls/ScreenTools.qml @@ -109,6 +109,12 @@ Item { mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio minTouchPixels = Math.round(minTouchMillimeters * Screen.pixelDensity) + if (minTouchPixels / Screen.height > 0.15) { + // If using physical sizing takes up too much o fthe vertical real estate fall back to font based sizing + minTouchPixels = defaultFontPixelHeight * 3 + } + + console.log(minTouchPixels / Screen.height) toolbarHeight = isMobile ? minTouchPixels : defaultFontPixelHeight * 3 }