Merging current fix for #86787 and #96213 from 4.x tree. When creating a new window check chrome to see if it should be created zoomable rather than changing it afterwards. Works around WDEF change in MacOS 8 that breaks old hack that would toggle zoom widget after creating window.
This commit is contained in:
Родитель
de8699bbb8
Коммит
647b3be4f5
|
@ -348,7 +348,10 @@ MWContext* FE_MakeNewWindow(MWContext* old_context,
|
|||
whichLayout = CBrowserWindow::titlebarless_res_ID; // titlebar-less browser window
|
||||
else if (chrome->topmost == true && chrome->hide_title_bar == false) // removed z-lock == true test - 2/11/97 mjc
|
||||
whichLayout = CBrowserWindow::floating_res_ID;
|
||||
else whichLayout = CBrowserWindow::res_ID;
|
||||
else if (chrome->allow_resize)
|
||||
whichLayout = CBrowserWindow::res_ID;
|
||||
else // If not explicitly resizable make sure window is created wo Zoom widget (Bug #s 86787, 96213)
|
||||
whichLayout = CBrowserWindow::nozoom_res_ID;
|
||||
}
|
||||
|
||||
// ¥¥¥ also, there are places in the code (ie CURLDispatcher) which check the res_ID of a window
|
||||
|
|
|
@ -48,7 +48,8 @@ class CBrowserWindow : public CNetscapeWindow, public CSaveWindowStatus, public
|
|||
res_ID = 1010,
|
||||
dialog_res_ID = 1013,
|
||||
titlebarless_res_ID = 1012,
|
||||
floating_res_ID = 1014};
|
||||
floating_res_ID = 1014,
|
||||
nozoom_res_ID = 1016};
|
||||
|
||||
enum EBooleanParms {
|
||||
kShow = true,
|
||||
|
|
Двоичные данные
cmd/macfe/rsrc/communicator/Browser.cnst
Двоичные данные
cmd/macfe/rsrc/communicator/Browser.cnst
Двоичный файл не отображается.
Двоичные данные
cmd/macfe/rsrc/navigator/BrowserRat.cnst
Двоичные данные
cmd/macfe/rsrc/navigator/BrowserRat.cnst
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче