Window does not size based on content

1 Answer 79 Views
Window
Grant
Top achievements
Rank 3
Iron
Iron
Veteran
Grant asked on 19 Jan 2022, 02:20 PM

Hi Team, 

Looking at this example, the width and height are set, but how can I configure the window to auto-size to wrap its content? Similar to the jQuery version.

Thanks,
Grant

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 20 Jan 2022, 06:13 AM

Hello, Grant,

I assume that there was an issue saving the example as it leads to the StackBlitz home page.

Currently, we can set the initialHeight to null in order to size it vertically based on the content size:

https://stackblitz.com/edit/react-yokbug?file=app/main.jsx

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
Grant
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Share this question
or