Discussions
Addon window position and movement error
Hi
I am wondering if there's any way to handle positioning of the addon window when resizing it? As it stands when I use the JS SDK and call the resizing method:
client.resizeWindow(1000, 850);
The addon window just jumps to that size and doesn't reposition. That means that depending on the screen size some of the addon window may be cut off or its just oddly uncentered. Is there any way I can call a method to re-centre the window or can that be done automatically after a resize is called? Or could a new function be added to the client sdk to position the window?
Also, there is an error when you do move the addon iframe window. The style attribute 'top' gets moved to -109px causing the addon title to be hidden from view with no way to grab or move or close the addon.
<div id="ext-comp-1172" class=" x-window x-resizable-pinned" style="position: absolute; z-index: 9013; visibility: visible; left: 727px; top: -109px; width: 700px; display: block;">
<div class="x-window-tl"><div class="x-window-tr">
<div class="x-window-tc"><div class="x-window-header x-unselectable x-window-draggable" id="ext-gen345">
<div class="x-tool x-tool-close" id="ext-gen350"> </div>
span class="x-window-header-text" id="ext-gen353">Single Point Repair</span>
Can this please be limited to 0 as a minimum?