Skip to content
Snippets Groups Projects
Commit b25d23b7 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Jean-Baptiste Kempf
Browse files

qml: correct detached playlist window positioning

mainInterface.minimumHeight is no longer available,
therefore use topWindow to retrieve minimum height.
parent 606648f4
No related branches found
No related tags found
1 merge request!694qml: correct detached playlist window positioning
Pipeline #144721 passed with stages
in 22 minutes and 23 seconds
......@@ -17,30 +17,35 @@
*****************************************************************************/
import QtQuick 2.11
import org.videolan.vlc 0.1
import QtQuick.Window 2.11
import org.videolan.vlc 0.1
import "qrc:///style/"
Window {
visible: true
property var rootWindow: g_root
readonly property point rootLocation: rootWindow.mapToGlobal(rootWindow.x, rootWindow.y)
property var window: topWindow
width: 300
width: 350
minimumWidth: playlistView.minimumWidth
// minimumHeight: mainInterface.minimumHeight
title: i18n.qtr("Playlist")
color: VLCStyle.colors.bg
Component.onCompleted: {
minimumHeight = mainInterface.minimumHeight // suppress non-notifyable property binding
x = rootLocation.x + rootWindow.width + VLCStyle.dp(10, VLCStyle.scale)
y = rootLocation.y
height = rootWindow.height
if (!!window) {
height = window.height
minimumHeight = window.minimumHeight
x = window.x + window.width + 10
y = window.y
} else {
height = 400
minimumHeight = 200
}
}
PlaylistListView {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment