tabcontrol-extra
tabcontrol-extra copied to clipboard
Aligment=left, DisplayRectangle is error when Aligment=left and SizeMode=Fixed
tabcontrol-extra/TabControlExtra/TabControl/TabControlExtra.cs line 238
if (this.Alignment <= TabAlignment.Bottom)
{
itemHeight = this.ItemSize.Height;
}
else
{
itemHeight = this.ItemSize.Width;
}
fix: itemHeight = this.ItemSize.Height;
if Aligment=left and SizeMode=Fixed rect = new Rectangle(tabStripHeight, 2, Width - tabStripHeight - 2, Height - 4) rect .x must is this.ItemSize.Height