Window sizing if browser zoomed

2 posts, 0 answers
  1. Chris Trina
    Chris Trina avatar
    87 posts
    Member since:
    Mar 2006

    Posted 23 Feb 2017 Link to this post

    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">


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



  2. Marin Bratanov
    Marin Bratanov avatar
    4533 posts

    Posted 24 Feb 2017 Link to this post


    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.


    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.
Back to Top