Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Charltsing opened this issue Aug 24, 2019 · 1 comment

Comments

@Charltsing
Copy link

Charltsing commented Aug 24, 2019

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 Charltsing changed the title Aligment=left, DisplayRectangle is error Aligment=left, DisplayRectangle is error when Aligment=left and SizeMode=Fixed Aug 25, 2019
@rlktradewright
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants