Auto resize modal popup?

Last post 06-29-2009 2:57 AM by Vince Xu - MSFT. 1 replies.

Sort Posts:

  • Auto resize modal popup?

    06-25-2009, 2:34 AM
    • Member
      point Member
    • akylej
    • Member since 01-09-2009, 1:52 AM
    • Posts 14

    Is it possible to make the modal popup extender auto-resizable like the "Quick reply" on this forum? the main reason i want this is so that if a popup has a height of 700 px and the screen resolution is 600px high, it  will auto fit to the screen.

    Thanks.

  • Re: Auto resize modal popup?

    06-29-2009, 2:57 AM
    Answer

    Hi,

    You can define showing event to reset the size of panel. 

        function pageLoad()
        {
            $find('programmaticModalPopupBehavior').add_showing(onshowing);
        }
       
        function onshowing()
        {
            $find('programmaticModalPopupBehavior')._foregroundElement.style.height=XX;
            $find('programmaticModalPopupBehavior')._foregroundElement.style.width=XX;

        }

     


    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)