mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
More layout changes
This commit is contained in:
parent
1a6acdc5b7
commit
210a1205a7
1 changed files with 14 additions and 9 deletions
|
@ -12,25 +12,28 @@ Hifi.Tooltip {
|
|||
implicitWidth: border.implicitWidth
|
||||
implicitHeight: border.implicitHeight
|
||||
|
||||
/*
|
||||
Border {
|
||||
id: border
|
||||
anchors.fill: parent
|
||||
implicitWidth: tooltipBackground.implicitWidth
|
||||
//implicitHeight: Math.max(text.implicitHeight, 64)
|
||||
implicitHeight: tooltipBackground.implicitHeight
|
||||
implicitHeight: tooltipBackground.implicitHeight*/
|
||||
|
||||
Original.Image {
|
||||
id: tooltipBackground
|
||||
source: "../images/tooltip_container.svg"
|
||||
width: 323
|
||||
height: 423
|
||||
anchors.fill: parent
|
||||
Original.Rectangle {
|
||||
id: border
|
||||
color: "#7f000000"
|
||||
implicitWidth: 322
|
||||
implicitHeight: col.height + hifi.layout.spacing * 2
|
||||
|
||||
ColumnLayout {
|
||||
id: col
|
||||
spacing: 5
|
||||
|
||||
Text {
|
||||
id: textPlace
|
||||
color: "#ffffff"
|
||||
width: border.implicitWidth
|
||||
//anchors.fill: parent
|
||||
anchors.margins: 5
|
||||
font.pixelSize: hifi.fonts.pixelSize / 2
|
||||
|
@ -49,6 +52,8 @@ Hifi.Tooltip {
|
|||
|
||||
Text {
|
||||
id: textDescription
|
||||
color: "#ffffff"
|
||||
width: border.implicitWidth
|
||||
//anchors.fill: parent
|
||||
anchors.margins: 5
|
||||
font.pixelSize: hifi.fonts.pixelSize / 2
|
||||
|
@ -58,5 +63,5 @@ Hifi.Tooltip {
|
|||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
Loading…
Reference in a new issue