Popup position reset

If I offset a popup’s position using jquery (changing its top and left css values), whenever a component (have verified this with a view:‘text’ and view:‘label’) uses its show() or hide() methods, the popup resets to its default position.

This is very inconvenient, as it requires me to determine what it’s current position is (before show/hide), call the methods and then change the popup position back to what it was.

Is this working as intended or is it a bug?

Instead of using jQuery just move the window with help of show command

win.show({ x:100, y:200 });

Next time it will reappear in the same position

http://webix.com/snippet/3646e6a7

Thank you for the suggestion. However, I’m not showing the popup manually, I’m using the ‘popup’ property on the button:

{height: 40, id:‘menu_nova’, view:‘icon’, css:‘menubtn’, icon:‘plus’, popup:‘a_popup’}

Do I have to use the click property and show the popup manually, instead of automatically?

In case of “popup” property the popup window will be shown next to button, always. So if you want to show it some custom ( or last active ) position then you need to replace “popup” with

click:function(){ $$("a_popup").show(); }

Thank you, I worked out a solution based on your suggestion and it’s working nicely.