Window.OnResize not triggered when the window is maximized and minimized #796

Closed
opened 2026-01-29 16:48:53 +00:00 by claunia · 2 comments
Owner

Originally created by @AvinashSuresh12 on GitHub (May 27, 2022).

Hi,

I've observed that OnResize event in electron is not triggered in few corner cases as below.
1. When the window is resized rapidly and on releasing at nearer position to the top of the screen, window will be auto adjusted to occupy the screen available --> At that time the OnResize event not triggered
2. When the window is resized rapidly and on releasing at nearer position to the minimum height of the window, then it will be auto adjusted to occupy the minimum height of the window --> At that time the OnResize event not triggered

Below are the more details on how i am using the OnResize event in my case.

I have a parent div container which has the height in terms of vh(viewport height) and the parent div has two child div's in it. Among those child-div1 has a fixed height and child-div2 has the variable height.

The variable height of the child-div 2 is calculated by subtracting the child-div1's height from the parent-div's current height. This variable height calculation event is triggered by "Electron.WindowManager.BrowserWindows.OnResize" event.

Please let me know if i am missing something or the issue can be fixed from Electron.NET

Thanks in advance

Originally created by @AvinashSuresh12 on GitHub (May 27, 2022). Hi, I've observed that OnResize event in electron is not triggered in few corner cases as below. 1. When the window is resized rapidly and on releasing at nearer position to the top of the screen, window will be auto adjusted to occupy the screen available --> At that time the OnResize event not triggered 2. When the window is resized rapidly and on releasing at nearer position to the minimum height of the window, then it will be auto adjusted to occupy the minimum height of the window --> At that time the OnResize event not triggered Below are the more details on how i am using the OnResize event in my case. I have a parent div container which has the height in terms of vh(viewport height) and the parent div has two child div's in it. Among those child-div1 has a fixed height and child-div2 has the variable height. The variable height of the child-div 2 is calculated by subtracting the child-div1's height from the parent-div's current height. This variable height calculation event is triggered by "Electron.WindowManager.BrowserWindows.OnResize" event. Please let me know if i am missing something or the issue can be fixed from Electron.NET Thanks in advance
claunia added the invalid label 2026-01-29 16:48:53 +00:00
Author
Owner

@danatcofo commented on GitHub (May 27, 2022):

@AvinashSuresh12 is this an Electron.NET issue or an electron issue or a chromium issue?

i.e.

does the the chromium and electron events get fired, but not the electron.net one? => Electron.NET
does the chromium event get fired but not the electron one? => electron
does the chromium event never get fired at all => chromium

We can only do something if its the first case. All other cases need to be raised in their respective repos.

@danatcofo commented on GitHub (May 27, 2022): @AvinashSuresh12 is this an Electron.NET issue or an electron issue or a chromium issue? i.e. does the the chromium and electron events get fired, but not the electron.net one? => Electron.NET does the chromium event get fired but not the electron one? => electron does the chromium event never get fired at all => chromium We can only do something if its the first case. All other cases need to be raised in their respective repos.
Author
Owner

@FlorianRappl commented on GitHub (Nov 7, 2025):

Tested and works. I think this was more related to Electron itself.

@FlorianRappl commented on GitHub (Nov 7, 2025): Tested and works. I think this was more related to Electron itself.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#796