Windows Maximize : Zoom Page

2 posts, 0 answers
  1. Steufa
    Steufa avatar
    5 posts
    Member since:
    Aug 2019

    Posted 17 Aug 2019 Link to this post

    Hello all ;)

    When I Maximize the window I zoom in on the page, but I can not change the position TOP 

    maximize: function(e) {
         var scale = 'scale(1.3)';
    document.body.style.webkitTransform =       // Chrome, Opera, Safari
     document.body.style.msTransform =          // IE 9
     document.body.style.transform = scale;
     dialog.center();
     
      },

     

  2. Dimitar
    Admin
    Dimitar avatar
    806 posts

    Posted 21 Aug 2019 Link to this post

    Hello Steufa,

    You could try using the setOptions() method to dynamically change the position of the Window as per the project requirements:
    maximize: function(e) {
         var scale = 'scale(1.3)';
         document.body.style.webkitTransform =       // Chrome, Opera, Safari
         document.body.style.msTransform =          // IE 9
         document.body.style.transform = scale;
     
         e.sender.center();
         e.sender.setOptions({ position: { top: 100, left: 0 }})                      
    }

    I hope this helps.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top