disable "always raised" "feature" of help on Mac OS X. We'd need a more robust z-level impl for this to work and that is too difficult for this late in the game (Apple bug makes it hard). b=404283 r=mano ui-r=beltzner

This commit is contained in:
joshmoz@gmail.com 2008-02-12 18:49:29 -08:00
Родитель 0475756ccb
Коммит 79a734d074
4 изменённых файлов: 9 добавлений и 11 удалений

Просмотреть файл

@ -65,7 +65,14 @@ function openHelp(topic, contentPack)
params.SetString(1, topic);
const ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
#ifdef XP_WIN
#define HELP_ALWAYS_RAISED_TOGGLE
#endif
#ifdef HELP_ALWAYS_RAISED_TOGGLE
ww.openWindow(null, "chrome://help/content/help.xul", "_blank", "chrome,all,alwaysRaised,dialog=no", params);
#else
ww.openWindow(null, "chrome://help/content/help.xul", "_blank", "chrome,all,dialog=no", params);
#endif
}
}

Просмотреть файл

@ -785,13 +785,10 @@ function getXulWin()
}
# toggleZLevel - Toggles whether or not the window will always appear on top. Because
# alwaysRaised is not supported on an OS other than Windows and Mac OS X, this code
# will not appear in those builds.
# alwaysRaised is not supported on an OS other than Windows, this code will not
# appear in those builds.
#
# element - The DOM node that persists the checked state.
#ifdef XP_MACOSX
#define HELP_ALWAYS_RAISED_TOGGLE
#endif
#ifdef XP_WIN
#define HELP_ALWAYS_RAISED_TOGGLE
#endif

Просмотреть файл

@ -55,9 +55,6 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="700"
height="550"
#ifdef XP_MACOSX
#define HELP_ALWAYS_RAISED_TOGGLE
#endif
#ifdef XP_WIN
#define HELP_ALWAYS_RAISED_TOGGLE
#endif

Просмотреть файл

@ -75,9 +75,6 @@
label="&fullZoomReduceBtn.label;"
accesskey="&fullZoomReduceBtn.accesskey;"
oncommand="ZoomManager.reduce();"/>
#ifdef XP_MACOSX
#define HELP_ALWAYS_RAISED_TOGGLE
#endif
#ifdef XP_WIN
#define HELP_ALWAYS_RAISED_TOGGLE
#endif