зеркало из https://github.com/mozilla/ubiquity.git
Ubiquity: Test implementation of http://getsatisfaction.com/mozilla/topics/open_ubiquity_window_at_outside_of_browser_window
This commit is contained in:
Родитель
532b06c888
Коммит
e9c8b15282
|
@ -318,9 +318,16 @@ Ubiquity.prototype = {
|
|||
openWindow: function U_openWindow() {
|
||||
({focusedWindow : this.__focusedWindow,
|
||||
focusedElement: this.__focusedElement}) = document.commandDispatcher;
|
||||
// This is a temporary workaround for #43.
|
||||
var anchor = document.getElementById("content").selectedBrowser;
|
||||
this.__msgPanel.openPopup(anchor, "overlap", 0, 0, false, true);
|
||||
var xy = Application.prefs.getValue("extensions.ubiquity.openAt", "");
|
||||
if (xy) {
|
||||
let [x, y] = xy.split(",");
|
||||
this.__msgPanel.openPopupAtScreen(x, y);
|
||||
}
|
||||
else {
|
||||
// This is a temporary workaround for #43.
|
||||
var anchor = document.getElementById("content").selectedBrowser;
|
||||
this.__msgPanel.openPopup(anchor, "overlap", 0, 0, false, true);
|
||||
}
|
||||
},
|
||||
|
||||
// === {{{ Ubiquity#closeWindow() }}} ===
|
||||
|
|
Загрузка…
Ссылка в новой задаче