2 Replies Latest reply on Mar 28, 2018 10:49 PM by Peter Viergutz

    How can I resize the Config Window in Interactive Phase using Javascript?

    Peter Viergutz

      It seems that window.resizeTo and window.resizeBy have no effect (at least in Tableau 10.5 on MacOS 10.12.6). Also I cannot find anything in the docs or anyone else asking this question, so either it must be obvious or I am missing something?


      I tried a simple




      and also


      function resize() {
        const innerWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
        const innerHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
        const targetWidth = 800;
        const targetHeight = 740;
        window.resizeBy(targetWidth - innerWidth, targetHeight - innerHeight);


      Both work in the Simulator, but not in Tableau. Has anyone faced/solved this?