diff --git a/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs b/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs index 891de6b2f..57641bf61 100644 --- a/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs +++ b/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs @@ -523,7 +523,7 @@ void Drawable_MouseDown(object sender, MouseEventArgs e) } else SelectedIndex = i; - + break; } } @@ -691,8 +691,7 @@ void DrawTab(Graphics g, ThemedDocumentPageHandler tab, int i) var tabRect = tab.Rect; var textRect = tab.TextRect; var closerect = tab.CloseRect; - var closemargin = closerect.Height / 3; - var size = tabRect.Size; + var closemargin = closerect.Height / 3; var textcolor = Enabled ? TabForegroundColor : DisabledForegroundColor; var backcolor = TabBackgroundColor; @@ -725,7 +724,6 @@ void DrawTab(Graphics g, ThemedDocumentPageHandler tab, int i) g.DrawLine(closeForeground, closerect.X + closemargin, closerect.Y + closemargin, closerect.X + closerect.Width - 1 - closemargin, closerect.Y + closerect.Height - 1 - closemargin); g.DrawLine(closeForeground, closerect.X + closemargin, closerect.Y + closerect.Height - 1 - closemargin, closerect.X + closerect.Width - 1 - closemargin, closerect.Y + closemargin); } - } ///