mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 18:47:28 +02:00
Fix attachments dialog joint dropdown in tablet
This commit is contained in:
parent
189eee01a6
commit
713c50f2e8
2 changed files with 5 additions and 2 deletions
|
@ -24,6 +24,7 @@ FocusScope {
|
|||
readonly property alias currentText: comboBox.currentText;
|
||||
property alias currentIndex: comboBox.currentIndex;
|
||||
|
||||
property int dropdownHeight: 480
|
||||
property int colorScheme: hifi.colorSchemes.light
|
||||
readonly property bool isLightColorScheme: colorScheme == hifi.colorSchemes.light
|
||||
property string label: ""
|
||||
|
@ -148,7 +149,7 @@ FocusScope {
|
|||
|
||||
FocusScope {
|
||||
id: popup
|
||||
parent: isDesktop ? desktop : parent
|
||||
parent: isDesktop ? desktop : root
|
||||
anchors.fill: parent
|
||||
z: isDesktop ? desktop.zLevels.menu : 12
|
||||
visible: false
|
||||
|
@ -173,7 +174,7 @@ FocusScope {
|
|||
|
||||
ScrollView {
|
||||
id: scrollView
|
||||
height: 480
|
||||
height: root.dropdownHeight
|
||||
width: root.width + 4
|
||||
property bool hoverEnabled: false;
|
||||
|
||||
|
|
|
@ -87,6 +87,7 @@ Item {
|
|||
}
|
||||
|
||||
Item {
|
||||
z: 1000
|
||||
height: jointChooser.height + jointLabel.height + 4
|
||||
anchors { left: parent.left; right: parent.right; }
|
||||
HifiControls.Label {
|
||||
|
@ -97,6 +98,7 @@ Item {
|
|||
}
|
||||
HifiControls.ComboBox {
|
||||
id: jointChooser;
|
||||
dropdownHeight: (typeof desktop !== "undefined") ? 480 : 206
|
||||
anchors { bottom: parent.bottom; left: parent.left; right: parent.right }
|
||||
colorScheme: hifi.colorSchemes.dark
|
||||
currentIndex: attachment ? model.indexOf(attachment.jointName) : -1
|
||||
|
|
Loading…
Reference in a new issue