I have a user control which has a custom label. when the labels width
changes, it adjusts it's height to fit it all. Then when I adjust the width
of the user control if the height of the label changes, i also have to
change the height of the user control
So, on that note on the Layout event of the user control I do this...
private void UserControl_Layout(object sender, LayoutEventArgs e)
{
this.Height = labelDescription.Bottom + panelText.Padding.Bottom
+ this.Padding.Bottom;
}
This works great, it does exactly what I want it to do... except!
When the userControls width is adjusted to quickly, the label goes down to
where it needs to go, but the userControl only follows a little bit. So the
text from the bottom of the label will be cut off.
What's going on here?