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

[Solved] Maintaining Rad Window position offset when resizing browser.

1 Answer 206 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 30 Jan 2008, 06:57 AM
My application requires that I load my Prometheus RAD windows in a fixed position relative to other items on the page.  When the page loads, I am able to set the position just fine.  The problem arises if the page is loaded while the browser is not maximized and the user resizes the browser or maximizes the browser after the load.  The other page contents adjust to the new page size, but the window looses its position relative to other items on the page.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 01 Feb 2008, 01:50 PM
Hi Ryan,

You can manipulate the RadWindow's position when the onresize event is fired on the document. In this case you should consider the offset parameters that you will subtract on each resizing of the window.

I have implemented one sample project demonstrating how you can handle this event and get the appropriate arguments on it. You should just set the RadWindow's position on the resizing event fire.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Ryan
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or