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

Windows Maximize : Zoom Page

1 Answer 37 Views
Window
This is a migrated thread and some comments may be shown as answers.
Steufa
Top achievements
Rank 1
Steufa asked on 17 Aug 2019, 01:54 PM

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();
 
  },

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Aug 2019, 05:06 AM
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.
Tags
Window
Asked by
Steufa
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or