tradewright / tabcontrol-extra

An improved TabControl for Windows Forms (.Net)
Other
33 stars 8 forks source link

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

Open Charltsing opened 5 years ago

Charltsing commented 5 years ago

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

rlktradewright commented 5 years ago

This is just to let you know I've seen the issue, but I don't have time to check it out just now. Should be able to do so in the next couple of days.