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

Resizing problem on Designer

5 Answers 2650 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ioannis
Top achievements
Rank 2
Ioannis asked on 09 Feb 2019, 12:19 PM

Since I have everything inside a RadDock, I'm assuming this is a RadDock issue.

There are 3 things that are the matter:

1) Controls will resize themselves on the designer. For example, look at Picture 1. When I last closed the project, I had resized it to fit the form perfectly. I opened it today and the control extends farther than the form resulting in non-visible area. This keeps happening, it's not a one-off thing.

2) What you see on the designer is not what you get. I run the programme with the control extending farther than the visible area, as it was on Picture 1, and what I get at runtime is the control not actually filling the whole form.

3) When resizing in the designer, some controls with anchors that make them resize when their parent does, will not resize properly.

The only way I found to get the sizes like I want them is to use the control.dock property, but you can only do that so many times on a panel.. so then you need panels inside panels to dock in them, and then panels inside panels inside panels depending on the layout. I'd much rather just use anchors but they have to work correctly.


Now, I'm not sure if the problem is cause but something specific that I did, or did wrongly - so if you need more information, please tell me.

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 11 Feb 2019, 01:54 PM
Hello Ioannis,

It seems that you are developing on an HDPI monitor where the scaling is set to more than 100% (see attached). In this case, you can either change your scaling setting or reset the AutoScaleDimensions property to the default value each time. Detailed information is available in the following articles:
I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ioannis
Top achievements
Rank 2
answered on 12 Feb 2019, 02:45 PM
Thank you for the reply.

Background information:
So, whilst I do have 3 monitors (the laptop's one + 2 external), none of them has a scaling other than 100%, and all of them are 1920x1080 resolution.

I did put the `RadControl.EnableDpiScaling = False` on the New() constructor before the `InitializeComponent()` as instructed, however, the problem persists.
These are new pictures taken after I followed the instructions.
0
Dimitar
Telerik team
answered on 13 Feb 2019, 10:42 AM
Hi Ioannis,

If you are working on 100% I am not sure what can cause such issues. This is why I want to kindly ask you to send me your project. This will allow me to further investigate this case and determine what is causing this. 

I am looking forward to your reply.

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.
0
Ioannis
Top achievements
Rank 2
answered on 13 Feb 2019, 09:36 PM

Definitely, yeah. Thank you very much for this.
You can download a reproducible example of the part of the programme I'm trying to make from here:

Even though it's pretty empty, please delete the link, if possible, after you download it.

P.S. try maximizing the form as well - it behaves weirdly.
Like, to me, even though the left button and right button are aligned on the designer and they are added to the same Parent control with left/button and right/bottom anchors respectively, the left ends up on the bottom left corner, but the right one goes to a weird top/not-that-bottom corner.

 

Best regards,

Ioannis Mamalikidis

0
Accepted
Dimitar
Telerik team
answered on 14 Feb 2019, 10:30 AM
Hello Ioannis,

Thanks for the project. The controls indeed have different size when anchored inside RadDock. I have logged this issue on our Feedback Portal. You can track its progress, subscribe to status changes and add your comment to it here. I have also updated your Telerik Points.

Unfortunately, due to the nature of the issue, I cannot provide you with a workaround for it. I can suggest using TableLayoutPanel for such cases. This is a great control and the Anchor property works differently in it. In addition, the Margin is working with docked controls as well. 

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboard 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
Dock
Asked by
Ioannis
Top achievements
Rank 2
Answers by
Dimitar
Telerik team
Ioannis
Top achievements
Rank 2
Share this question
or