             };

                frame.hideFrameComponent('maximizeButton');
                frame.showFrameComponent('restoreButton');

                frame.setPosition(0, 0);
                frame.setSize(window.innerWidth - 2, window.innerHeight - 2, true);

                frame.setMovable({{popup_maximized_movable}});
                frame.setResizable({{popup_maximized_resizable}});


            });

            frame.on('restoreButton', 'click', (_frame, evt) => {

                frame.setMovable(