1
Vote

autosize doesn't work properly

description

my icons are 180x180 and i've got imagescalingsize set to 32x32 but they're being rendered distorted with incorrect padding. Turning off AutoSize fixes the issue (but breaks when I change my language)

comments

ispy wrote May 11, 2012 at 2:02 AM

... i've just seen that you've got the override hard coding:

if (toolStrip is MenuStrip)
        {
            toolStrip.CanOverflow = false;
        }
        else if (toolStrip is ContextMenuStrip)
        {
            // No nothing
        }
        else
        {

            toolStrip.AutoSize = false;
            toolStrip.Height = 32;

            toolStrip.Padding = new Padding(5, 2, 5, 2);
            toolStrip.CanOverflow = false;
            toolStrip.GripStyle = ToolStripGripStyle.Hidden;

        }

        toolStrip.Font = new Font("Segoe UI", 9);
  • that'll explain it ! wtf have you done that for?!