Skip to content

Commit 5d12b30

Browse files
authored
Merge pull request #270 from BF4C5B1330/patch-1
fix: toast messages never hide
2 parents 9d17878 + f29f36c commit 5d12b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/toast-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class ToastService {
112112

113113
// Positioning toast at the top middle of the parent window
114114
const parentBounds = parent.getBounds();
115-
const x = parentBounds.x + (parentBounds.width - 300) / 2;
115+
const x = Math.round( parentBounds.x + (parentBounds.width - 300) / 2 );
116116
const y = parentBounds.y + 10;
117117
toastWindow.window.setPosition(x, y, false);
118118

0 commit comments

Comments
 (0)