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

Window sizing if browser zoomed

1 Answer 52 Views
Window
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 23 Feb 2017, 11:26 PM

Is there any way to have a modal window size properly if the user has used the zoom function on their browser?  I have the window defined as shown below, and it seems to work as desired, unless the user has zoomed the browser.  If the browser is zoomed, the window is outside of the visible bounds at the top and bottom.

<telerik:RadWindow ID="RadWindow1" runat="server" Modal="true" Behavior="Close"
Behaviors="None" EnableViewState="False" CenterIfModal="true" KeepInScreenBounds="true"
InitialBehaviors="Close" Skin="Default" DestroyOnClose="true" ReloadOnShow="False" VisibleStatusbar="False">
</telerik:RadWindow>

 

What is the most current suggestion for opening a modal window where all of the edges are consistently visible?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Feb 2017, 01:12 PM

Hi,

If you can catch the zoom end event and get the correct position of the viewport, you can use the moveTo(x, y) and setSize(width, height) client-side methods of the RadWindow to position it as desired.

Regards,

Marin Bratanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Window
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or