mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 06:13:04 +02:00
shrink message dialog to contentWidth
This commit is contained in:
parent
188712a55b
commit
890266e0bd
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ ModalWindow {
|
||||||
readonly property int maxHeight: 720
|
readonly property int maxHeight: 720
|
||||||
|
|
||||||
function resize() {
|
function resize() {
|
||||||
var targetWidth = mainTextContainer.width
|
var targetWidth = mainTextContainer.contentWidth
|
||||||
var targetHeight = mainTextContainer.height + 3 * hifi.dimensions.contentSpacing.y
|
var targetHeight = mainTextContainer.height + 3 * hifi.dimensions.contentSpacing.y
|
||||||
+ (informativeTextContainer.text != "" ? informativeTextContainer.contentHeight + 3 * hifi.dimensions.contentSpacing.y : 0)
|
+ (informativeTextContainer.text != "" ? informativeTextContainer.contentHeight + 3 * hifi.dimensions.contentSpacing.y : 0)
|
||||||
+ buttons.height
|
+ buttons.height
|
||||||
|
|
Loading…
Reference in a new issue