You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed app sometimes hanging during window resize in the wxpython.py example. It occurs during the EVT_SIZE event when calling WindowUtils.OnSize. That function does not handle things properly and it should only be called when handling WM_SIZE message, as it makes calls to DefWindowProc.
The solution will be to expose Browser.SetBounds on Windows which will be a wrapper for SetWindowPos WIN32 API.
All examples should be updated to use the new Browser.SetBounds method.
In v49 release for WinXP/Vista there is WindowUtils.UpdateBrowserSize, so it needs to be added to Migration Guide doc that it is require to call Browser.SetBounds now..
Related issue: #345 ("Crash when resizing browser using WindowUtils.OnSize with multi-threaded message loop set to True").
A temporary fix for the tkinter.py example in commit 38bcf0c. Using ctypes module to call SetWindowPos.
cztomczak
changed the title
Fix issues with app hanging during window resize when calling WindowUtils.OnSize
Fix issues with app hanging during window resize when calling WindowUtils.OnSize. Expose new Browser.SetBounds method.
Jan 23, 2020
update examples and documentation.
Fix event handling in qt.py example. Parent methods need to be called
when overriding events.
Fix screenshot.py example. Sometimes OnLoadingStateChange was called
before OnPaint resulting in error.
Fixes in commit de6bcd5 in the dev branch. Expose Browser.SetBounds method, update examples and documentation. There are still sometimes hangs (although rare) when resizing window in wxpython.py and qt.py examples. Needs retesting after updating to latest CEF version.
…thod,
update examples and documentation.
Fix event handling in qt.py example. Parent methods need to be called
when overriding events.
Fix screenshot.py example. Sometimes OnLoadingStateChange was called
before OnPaint resulting in error.
I noticed app sometimes hanging during window resize in the wxpython.py example. It occurs during the EVT_SIZE event when calling
WindowUtils.OnSize
. That function does not handle things properly and it should only be called when handling WM_SIZE message, as it makes calls toDefWindowProc
.The solution will be to expose
Browser.SetBounds
on Windows which will be a wrapper forSetWindowPos
WIN32 API.All examples should be updated to use the new
Browser.SetBounds
method.In v49 release for WinXP/Vista there is
WindowUtils.UpdateBrowserSize
, so it needs to be added to Migration Guide doc that it is require to callBrowser.SetBounds
now..Related issue: #345 ("Crash when resizing browser using WindowUtils.OnSize with multi-threaded message loop set to True").
window_utils_win.pyx
wxpython.py
The text was updated successfully, but these errors were encountered: