Restore single editor tab window header on platforms with not yet implemented drag features (mac, linux)
#2770
This commit is contained in:
@@ -14,6 +14,11 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
{
|
{
|
||||||
private DockPanel _panel;
|
private DockPanel _panel;
|
||||||
private double _dragEnterTime = -1;
|
private double _dragEnterTime = -1;
|
||||||
|
#if PLATFORM_WINDOWS
|
||||||
|
private const bool HideTabForSingleTab = true;
|
||||||
|
#else
|
||||||
|
private const bool HideTabForSingleTab = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The is mouse down flag (left button).
|
/// The is mouse down flag (left button).
|
||||||
@@ -51,7 +56,7 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
public DockWindow StartDragAsyncWindow;
|
public DockWindow StartDragAsyncWindow;
|
||||||
|
|
||||||
private Rectangle HeaderRectangle => new Rectangle(0, 0, Width, DockPanel.DefaultHeaderHeight);
|
private Rectangle HeaderRectangle => new Rectangle(0, 0, Width, DockPanel.DefaultHeaderHeight);
|
||||||
private bool IsSingleFloatingWindow => _panel.TabsCount == 1 && _panel.IsFloating && _panel.ChildPanelsCount == 0;
|
private bool IsSingleFloatingWindow => HideTabForSingleTab && _panel.TabsCount == 1 && _panel.IsFloating && _panel.ChildPanelsCount == 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="DockPanelProxy"/> class.
|
/// Initializes a new instance of the <see cref="DockPanelProxy"/> class.
|
||||||
|
|||||||
Reference in New Issue
Block a user