mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-03 15:49:26 +03:00
Text width calculation changes were causing the tab text to be cut off early. Updated EnsureVisible to better handle the total tab size being smaller/larger than the tab area.
50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
using DarkUI.Config;
|
|
using DarkUI.Controls;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
|
|
namespace DarkUI.Docking
|
|
{
|
|
internal class DarkDockTabArea
|
|
{
|
|
#region Field Region
|
|
|
|
private Dictionary<DarkDockContent, DarkDockTab> _tabs = new Dictionary<DarkDockContent, DarkDockTab>();
|
|
|
|
private DarkContextMenu _tabMenu = new DarkContextMenu();
|
|
|
|
#endregion
|
|
|
|
#region Property Region
|
|
|
|
public DarkDockArea DockArea { get; private set; }
|
|
|
|
public Rectangle ClientRectangle { get; set; }
|
|
|
|
public Rectangle DropdownRectangle { get; set; }
|
|
|
|
public bool DropdownHot { get; set; }
|
|
|
|
public int Offset { get; set; }
|
|
|
|
public int TotalTabSize { get; set; }
|
|
|
|
public bool Visible { get; set; }
|
|
|
|
public DarkContextMenu TabMenu { get { return _tabMenu; } }
|
|
|
|
public DarkDockTab ClickedCloseButton { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Constructor Region
|
|
|
|
public DarkDockTabArea(DarkDockArea dockArea)
|
|
{
|
|
DockArea = dockArea;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|