satyr 2009-10-15 03:36:38 +09:00
Родитель 532b06c888
Коммит e9c8b15282
1 изменённых файлов: 10 добавлений и 3 удалений

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

@ -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() }}} ===