tabcontrol-extra icon indicating copy to clipboard operation
tabcontrol-extra copied to clipboard

Aligment=left, DisplayRectangle is error when Aligment=left and SizeMode=Fixed

Open Charltsing opened this issue 5 years ago • 1 comments

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

Charltsing avatar Aug 24 '19 08:08 Charltsing