More layout changes

This commit is contained in:
Niraj Venkat 2015-06-25 14:07:03 -07:00
parent 1a6acdc5b7
commit 210a1205a7

View file

@ -12,25 +12,28 @@ Hifi.Tooltip {
implicitWidth: border.implicitWidth implicitWidth: border.implicitWidth
implicitHeight: border.implicitHeight implicitHeight: border.implicitHeight
/*
Border { Border {
id: border id: border
anchors.fill: parent anchors.fill: parent
implicitWidth: tooltipBackground.implicitWidth implicitWidth: tooltipBackground.implicitWidth
//implicitHeight: Math.max(text.implicitHeight, 64) //implicitHeight: Math.max(text.implicitHeight, 64)
implicitHeight: tooltipBackground.implicitHeight implicitHeight: tooltipBackground.implicitHeight*/
Original.Image { Original.Rectangle {
id: tooltipBackground id: border
source: "../images/tooltip_container.svg" color: "#7f000000"
width: 323 implicitWidth: 322
height: 423 implicitHeight: col.height + hifi.layout.spacing * 2
anchors.fill: parent
ColumnLayout { ColumnLayout {
id: col
spacing: 5 spacing: 5
Text { Text {
id: textPlace id: textPlace
color: "#ffffff"
width: border.implicitWidth
//anchors.fill: parent //anchors.fill: parent
anchors.margins: 5 anchors.margins: 5
font.pixelSize: hifi.fonts.pixelSize / 2 font.pixelSize: hifi.fonts.pixelSize / 2
@ -49,6 +52,8 @@ Hifi.Tooltip {
Text { Text {
id: textDescription id: textDescription
color: "#ffffff"
width: border.implicitWidth
//anchors.fill: parent //anchors.fill: parent
anchors.margins: 5 anchors.margins: 5
font.pixelSize: hifi.fonts.pixelSize / 2 font.pixelSize: hifi.fonts.pixelSize / 2
@ -58,5 +63,5 @@ Hifi.Tooltip {
} }
} }
} //}
} }