зеркало из https://github.com/mozilla/pjs.git
Initialize the 2 new fields of the nsSizeEvent (mWinWidth + mWinHeight) before dispatching the event. Fix a crash due to recursive calls in the sample viewer app.
This commit is contained in:
Родитель
5ca92aa7c5
Коммит
197e5a86da
|
@ -816,6 +816,8 @@ PRBool nsWindow::ReportSizeEvent()
|
|||
|
||||
// nsSizeEvent
|
||||
sizeEvent.windowSize = &mBounds;
|
||||
sizeEvent.mWinWidth = mBounds.width;
|
||||
sizeEvent.mWinHeight = mBounds.height;
|
||||
|
||||
// dispatch event
|
||||
return(DispatchWindowEvent(sizeEvent));
|
||||
|
|
Загрузка…
Ссылка в новой задаче