mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
tweak(react-remote): If window is closed very quickly, do not send sizing (Sentry 2888)
This commit is contained in:
parent
97442b9bcb
commit
ac9a86e6f3
1 changed files with 5 additions and 0 deletions
5
src/react-remote/react-remote-parent.js
vendored
5
src/react-remote/react-remote-parent.js
vendored
|
@ -250,6 +250,8 @@ var openWindowForComponent = function(Component, options) {
|
|||
}
|
||||
for (var ii = 0; ii < invocationTargets.length; ii++) {
|
||||
if (invocationTargets[ii].container === container) {
|
||||
invocationTargets[ii].windowReady = false
|
||||
invocationTargets[ii].window = null
|
||||
invocationTargets.splice(ii, 1);
|
||||
break;
|
||||
}
|
||||
|
@ -266,6 +268,9 @@ var openWindowForComponent = function(Component, options) {
|
|||
if (!options.autosize) {
|
||||
return;
|
||||
}
|
||||
if (!thinWindow) {
|
||||
return;
|
||||
}
|
||||
// Weirdly, this returns an array of [width, height] and not a hash
|
||||
var size = thinWindow.getContentSize();
|
||||
var containerSize = container.getBoundingClientRect();
|
||||
|
|
Loading…
Reference in a new issue