Adjusted Tab Label width for DPI

Corrected RightMargin initialization
This commit is contained in:
Rich
2010-11-22 21:15:11 +00:00
parent 0925d44631
commit 05b8809608
2 changed files with 18 additions and 2 deletions

View File

@@ -424,7 +424,7 @@ namespace Volian.Controls.Library
ItemInfo.ResetTabString(MyID);
string tabString = _MyItemInfo.MyTab.CleanText;
lblTab.Text = tabString;
lblTab.Width = tabString.Length * 8;
lblTab.Width = tabString.Length * 8 * MyStepPanel.DPI / 96;// Adjust width for DPI
Invalidate();
_MyStepRTB.Left = lblTab.Left + lblTab.Width;// +2;
_MyStepRTB.Width = Width - _MyStepRTB.Left;