made the alignment of text persistent and editable

This commit is contained in:
Chris Cochrun 2022-04-14 06:30:12 -05:00
parent 2e46f403be
commit 672158a316
3 changed files with 16 additions and 12 deletions

View file

@ -23,8 +23,8 @@ Item {
editMode: true
imageSource: imageBackground
videoSource: videoBackground
horizontalAlignment: hTextAlignment
verticalAlignment: vTextAlignment
hTextAlignment: root.hTextAlignment
vTextAlignment: root.vTextAlignment
preview: true
}
@ -56,7 +56,7 @@ Item {
function updateVAlignment(alignment) {
switch (alignment) {
case "top" :
representation.verticalAlignment = Text.AlignBottom;
representation.verticalAlignment = Text.AlignTop;
break;
case "center" :
representation.verticalAlignment = Text.AlignVCenter;