Modal window not centered when first opened.

2 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Dec 2008

    Posted 03 May 2012 Link to this post

    I have a modal window that I am firing on an icon click. When the window loads, it's low and right of where it should be. If you close the window and select the icon again, the window appears in the correct position. Any clue what is going on?

  2. Marin Bratanov
    Marin Bratanov avatar
    5812 posts

    Posted 04 May 2012 Link to this post

    Hi Michael,

    How exactly are you showing this window? Are you using its OnCilentShow event to change its size (via the setSize() method)? If so you would need to re-center it again after modifying its size because the top left corner stays in place when such resizing takes place. Currently I am only guessing, but if you provide the opening function and RadWindow markup that are causing this behavior I will, in turn, be able to provide a more accurate answer.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top