mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
sizing changes
This commit is contained in:
@@ -11,9 +11,13 @@ PanelWindow {
|
||||
// Core properties
|
||||
property alias content: contentLoader.sourceComponent
|
||||
|
||||
// Sizing
|
||||
// Sizing - can use fixed or relative to screen
|
||||
property real width: 400
|
||||
property real height: 300
|
||||
|
||||
// Screen-relative sizing helpers
|
||||
readonly property real screenWidth: parent ? parent.width : width
|
||||
readonly property real screenHeight: parent ? parent.height : height
|
||||
|
||||
// Background behavior
|
||||
property bool showBackground: true
|
||||
@@ -71,6 +75,11 @@ PanelWindow {
|
||||
if (root.visible) {
|
||||
opened()
|
||||
} else {
|
||||
// Properly cleanup text input surfaces
|
||||
if (Qt.inputMethod) {
|
||||
Qt.inputMethod.hide()
|
||||
Qt.inputMethod.reset()
|
||||
}
|
||||
dialogClosed()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,6 @@ Rectangle {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
textInput.text = "";
|
||||
textInput.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user