Skip to content

Commit e895cd3

Browse files
committed
TextBubble: Fix stage bounds
1 parent b4cdd16 commit e895cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/TextBubble.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ TextBubbleShape {
4444
return;
4545

4646
const targetBounds = target.getBoundsForBubble();
47-
const stageBounds = Qt.rect(-root.stageWidth / 2, root.stageHeight / 2, root.stageWidth, root.stageHeight);
47+
const stageBounds = Qt.rect(-root.stageWidth / 2, root.stageHeight / 2, root.stageWidth, -root.stageHeight);
4848

4949
if (onSpriteRight && nativeWidth + targetBounds.right > stageBounds.right &&
5050
(targetBounds.left - nativeWidth > stageBounds.left)) { // Only flip if it would fit

0 commit comments

Comments
 (0)