shrink message dialog to contentWidth

This commit is contained in:
Stephen Birarda 2016-03-11 15:45:44 -08:00
parent 188712a55b
commit 890266e0bd

View file

@ -72,7 +72,7 @@ ModalWindow {
readonly property int maxHeight: 720
function resize() {
var targetWidth = mainTextContainer.width
var targetWidth = mainTextContainer.contentWidth
var targetHeight = mainTextContainer.height + 3 * hifi.dimensions.contentSpacing.y
+ (informativeTextContainer.text != "" ? informativeTextContainer.contentHeight + 3 * hifi.dimensions.contentSpacing.y : 0)
+ buttons.height