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

git-svn-id: svn://10.0.0.236/trunk@245538 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
joshmoz%gmail.com
2008-02-13 02:49:29 +00:00
parent fc4b80d4bb
commit 7756991bf5
4 changed files with 9 additions and 11 deletions

View File

@@ -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
}
}

View File

@@ -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

View File

@@ -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

View File

@@ -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