Unplanned
Last Updated: 09 Jan 2023 13:37 by ADMIN
Kris
Created on: 09 Jan 2023 13:28
Category: Dock
Type: Bug Report
2
RadDock: FloatingWindows increase their height on every LoadFromXml
All you need to do to reproduce the issue is to run, close, run, close several times - maybe 5 or more times, and observe the floating windows increasing in size.  
Attached Files:
1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 09 Jan 2023 13:37

Hi, Kris,

Thank you for bringing this behavior to our attention.

Currently, due to the specificity of the issue, the possible solution that I can suggest is before saving the layout, to adjust the height of the FloatingWindow:

        private void Form2_FormClosing(object sender, FormClosingEventArgs e)
        {
            var fw = this.radDock1.FloatingWindows;
            foreach (FloatingWindow window in fw)
            {
                window.Size = new Size(window.Size.Width, window.Size.Height-8);
            }
            this.radDock1.SaveToXml(@".\NewLayout.xml");
        }

I hope it would fit your scenario.

Regards,
Dess | Tech Support Engineer, Principal
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/.