Commit 72d00c48 authored by Fushan Wen's avatar Fushan Wen
Browse files

Use Math.round() to calculate the height of HeaderBar

A thin white line between the toolbar and the content view appears when
the height of HeaderBar is not properly rounded. Use Math.round() to
calculate the height of HeaderBar to remove the white line.

BUG: 443191
parent 12ac15d1
Pipeline #84119 passed with stage
in 8 minutes and 18 seconds
......@@ -297,8 +297,8 @@ Kirigami.ApplicationWindow {
active: !Kirigami.Settings.isMobile
visible: active
Layout.minimumHeight: mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight
Layout.maximumHeight: mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight
Layout.minimumHeight: Math.round(mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight)
Layout.maximumHeight: Layout.minimumHeight
Layout.fillWidth: true
sourceComponent: HeaderBar {
......@@ -335,8 +335,8 @@ Kirigami.ApplicationWindow {
},
PropertyChanges {
target: headerBarLoader
Layout.minimumHeight: mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight
Layout.maximumHeight: mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight
Layout.minimumHeight: Math.round(mainWindow.height * 0.2 + elisaTheme.mediaPlayerControlHeight)
Layout.maximumHeight: Layout.minimumHeight
}
]
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment