C
C#2y ago
Conner

❔ AutoSize always shrinks my control to 1 px even with content

I have a User Control that has 3 panels in it. One docked to the top, one to fill and one to the bottom. Both the top and bottom panel have content in them and dont have auto size set. Yet for some reason if I enable auto size on the main Control, it shrinks down to the smalles possible size! I really don't understand why this happens.
3 Replies
Conner
ConnerOP2y ago
And setting the fill panel to auto size doesnt change its size even though there is nothing in there 🤔 😢
HimmDawg
HimmDawg2y ago
I think what you are trying to do is not possible via designer. You should calculate the width in a separate method in your usercontrol.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server