Completed
Last Updated: 23 May 2019 05:52 by ADMIN
Release 2019.R2
tan tan
Created on: 03 Apr 2019 03:48
Category: Window
Type: Bug Report
0
Use Windows as Sliding Panes

I use Windows as a sliding pane. How do I make the window still the default size when the window is minimized and then restored?

https://dojo.telerik.com/iKoledUd

1 comment
ADMIN
Petar
Posted on: 04 Apr 2019 13:57
Hello Tan,

Thank you for your issue. Is has been reported as a regression bug since version 2018.3.911 of Kendo UI. You can follow its public thread on this link: https://feedback.telerik.com/kendo-jquery-ui/1403377-use-windows-as-sliding-panes

This example demonstrates a possible workaround of your issue. To return window's "restore" proper behavior you must add the following snippet to its configuration: 
minimize: function (e) {
       var restore = e.sender.wrapper.find(".k-i-window-restore").parent();
     restore.on("click", function () {
       setTimeout(function () {
           e.sender.wrapper.height("94%");
       })
     })
   }

Window's height in the example is hardcoded but you can set it in a separate variable and use this variable in your code instead of a fixed percentage.

I've updated your Telerik points as a sign of gratitude. Thank you once again for your feedback. 

Regards,
Petar
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.