mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-16 18:25:04 -06:00
fix: SDA-2806 - Fix notification inline reply focus issue with Windows (#1162)
This commit is contained in:
parent
40080cd316
commit
420dee0d48
@ -415,6 +415,20 @@ class Notification extends NotificationHandler {
|
||||
if (windowExists(window)) {
|
||||
this.renderNotification(window, data);
|
||||
}
|
||||
// This is a workaround to make sure the notification
|
||||
// with visible input always stays on top of normal notifications
|
||||
if (isWindowsOS) {
|
||||
this.activeNotifications.forEach((activeNotification) => {
|
||||
if (!activeNotification || !windowExists(activeNotification)) {
|
||||
return;
|
||||
}
|
||||
const [, height] = activeNotification.getSize();
|
||||
// Height of notification window with input will be 104
|
||||
if (height > notificationSettings.height) {
|
||||
activeNotification.moveTop();
|
||||
}
|
||||
});
|
||||
}
|
||||
return resolve(window);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user