File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
meshroom/ui/qml/Shapes/Viewer/Layers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,14 @@ BaseLayer {
1616 id: textLayer
1717
1818 Text {
19- x: textLayer .observation .center .x - implicitWidth * 0.5 // Center text horizontally
20- y: textLayer .observation .center .y - implicitHeight * 0.5 // Center text vertically
19+ width: ShapeViewerHelper .containerWidth - textLayer .observation .center .x
20+ height: ShapeViewerHelper .containerHeight - textLayer .observation .center .y
21+
22+ x: textLayer .observation .center .x
23+ y: textLayer .observation .center .y
2124 text: textLayer .observation .content || " Undefined"
2225 color: textLayer .properties .color || textLayer .defaultColor
23- wrapMode: Text .NoWrap
26+ wrapMode: Text .Wrap
2427 font .family : textLayer .properties .fontFamily || " Arial"
2528 font .pixelSize : getScaledFontSize ()
2629 }
You can’t perform that action at this time.
0 commit comments