This is a migrated thread and some comments may be shown as answers.

Modal window not centered when first opened.

1 Answer 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 03 May 2012, 04:30 PM
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?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 May 2012, 03:34 PM
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,
Marin
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.
Tags
Window
Asked by
Michael
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or