The UltraGridBagLayoutPanel doesn't seem to be autoscaling along with the rest of the form.
When I test a form with AutoScaleMode set to Font on 96 and 120dpi (regular and large fonts); the form size scales, the controls scale, but the UltraGridBagLayoutPanel cells don't scale.
In my example, the gridbag is controling the size of group boxes and they are clipping the controls within them.
Can you confirm this behavior? Is this a bug? Is there a workaround?
Thanks for the help
After a day and a half of trial and error (could not reproduce my scaling issue on my dev PC) I wound up with this line to fix it:
ultraGridBagLayoutPanel3.SetPreferredSize(currentTaskLabel,new Size((int)(ultraGridBagLayoutPanel3.GetPreferredSize(currentTaskLabel).Width * scaleX),(int)(ultraGridBagLayoutPanel3.GetPreferredSize(currentTaskLabel).Height * scaleY)));
Basically, use code to scale preferred size of each control on load.
Hopefully this saves someone else a lot of pain.
Greg
I am also having issues with this.. seems like in certain cases the cells don't resize properly and others it does.
Is there some way to force the control to recalculate and re-layout it's cells?
Is there any update on this?
The GridBag is great. Almost.
Is there, anywhere, a definative treatise on how to squeeze the most out of these bad boys?
Hi,
The GridBagLayoutPanel was not designed to honor the AutoScaleMode. Whether that's an oversight or an intentional design decision is not clear.
Does the Microsoft LayoutPanel support this behavior? If the MS control suports this and the Infragistics GridBagLayoutPanel does not, then I'd say it is a bug and you should Submit an incident to Infragistics Developer Support.