When minimizing a Window then closing that window the next time it opens it is back to the default size but not showing content
When minimizing a Window then closing that window the next time it is opened, it is back to the default size but not showing content. It does show the un-minimize icon and when clicking on it restores the content within the window.
Thank you for getting back to me. It seems obvious now that you pointed me in the right direction - the width and height properties are rendered as inline style="width: ...; height: ...;" on the window wrapper and so they take effect when the window is re-shown - minimizing sets height:0, but when re-rendeing it is taken from the component parameter.
This will need some research in order to get improved, though, because minimizing must not break parameter binding, and at the same time - it must alter the same values as the parameters.
I can think of only one workaround - removing the Width and Height of the window and setting them to the wrapper of the content, so that the size of the content will control the size of the window, like in my example.
Progress Telerik UI for Blazor
Posted on:10 Jun 2019 12:38
It happens when I add Width and Height properties to TelerikWindow. Here is your example with the issue and an attached video.
@page "/" @using Telerik.Blazor.Components.Window
<button onclick="@ShowWindow">Show the Window</button>