Bloom.Workspace.WorkspaceView.AdjustToolPanelLocation C# (CSharp) Method

AdjustToolPanelLocation() private method

Adjusts the tool panel location to allow more (or optionally less) space for the tab buttons.
private AdjustToolPanelLocation ( bool allowNarrowing ) : void
allowNarrowing bool
return void
        void AdjustToolPanelLocation(bool allowNarrowing)
        {
            var widthOfTabButtons = TabButtonSectionWidth;
            var location = _toolSpecificPanel.Location;
            if (widthOfTabButtons > location.X || allowNarrowing)
            {
                location.X = widthOfTabButtons;
                _toolSpecificPanel.Location = location;
            }
        }