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.
2 parents 9d17878 + f29f36c commit 5d12b30Copy full SHA for 5d12b30
src/services/toast-service.ts
@@ -112,7 +112,7 @@ export class ToastService {
112
113
// Positioning toast at the top middle of the parent window
114
const parentBounds = parent.getBounds();
115
- const x = parentBounds.x + (parentBounds.width - 300) / 2;
+ const x = Math.round( parentBounds.x + (parentBounds.width - 300) / 2 );
116
const y = parentBounds.y + 10;
117
toastWindow.window.setPosition(x, y, false);
118
0 commit comments