jQuery UI Widgets Forums Dialogs and Notifications Window Position of window not changed after move

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 7 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Rhys
    Participant

    Steps to reporduce
    1) If you create a standard jqwWindow and specify an x and y position for easy of comparison later.
    2) Then move it on the screen.
    3) Access the window again, I did this in a jQuery selector via a class.
    4) Use the position method to get the position of the window, the $(this).jqxWindow(‘position’) shows the original position and not the new one it has moved to.

    Position of window not changed after move #88020

    Peter Stoev
    Keymaster

    Hi Rhys,

    The position property determines the window’s initial position. It can be set to ‘center’, not only to Array of X and Y values. You can handle the ‘moved’ event if you need to do something when the window is moved. Also jQuery has offset() method which you can use to get the top, left offset of any HTML Element.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.