We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9f712 commit 9d2a78fCopy full SHA for 9d2a78f
lib/src/utils/calc_window_position.dart
@@ -79,6 +79,13 @@ Future<Offset> calcWindowPosition(
79
visibleStartX + visibleWidth - windowSize.width,
80
visibleStartY + (visibleHeight - windowSize.height),
81
);
82
+ } else {
83
+ final left = (visibleWidth - windowSize.width) / 2 + alignment.x * ((visibleWidth - windowSize.width) / 2);
84
+ final top = (visibleHeight - windowSize.height) / 2 + alignment.y * ((visibleHeight - windowSize.height) / 2);
85
+ position = Offset(
86
+ visibleStartX + left,
87
+ visibleStartY + top,
88
+ );
89
}
90
return position;
91
0 commit comments