X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=blobdiff_plain;f=xulapp%2Fchrome%2Fmandelbrot%2Fcontent%2Fmandelbrot.js;fp=xulapp%2Fchrome%2Fmandelbrot%2Fcontent%2Fmandelbrot.js;h=24f9a0c36cc5c1461b462de3eaabbef7f6eb5595;hp=95c0e1401eace09be8514a7cb85e4b837421fca5;hb=60e048b29facde0026b5fac74fdf88f60d2e12cd;hpb=8a2b6e174e3cd0d1d30bb48e9842c4e8bfba2827 diff --git a/xulapp/chrome/mandelbrot/content/mandelbrot.js b/xulapp/chrome/mandelbrot/content/mandelbrot.js index 95c0e14..24f9a0c 100644 --- a/xulapp/chrome/mandelbrot/content/mandelbrot.js +++ b/xulapp/chrome/mandelbrot/content/mandelbrot.js @@ -683,10 +683,16 @@ function setPalette(aPaletteID) { } function imgSettings() { - if (document.getElementById("mandelbrotWindow").nodeName == "page") - document.getElementById("imgSettingsPanel").showPopup(null, "before_start"); - else - window.openDialog("chrome://mandelbrot/content/image-settings.xul"); + let anchor = null; + let position = "before_start"; + if (document.getElementById("mandelbrotWindow").nodeName == "page") { + anchor = document.getElementById("mandelbrotToolbar"); + } + else { + anchor = document.getElementById("mandelbrotMenubar"); + position = "after_start"; + } + document.getElementById("imgSettingsPanel").showPopup(anchor, position); } function updateDebugMenu() {