Use tab x midpoint instead or right edge for overflow
- Issue MatterHackers/MCCentral#3779 Clip rather than hide tabs
This commit is contained in:
parent
5007a28de6
commit
70a5ff0602
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
var totalX = widget.Width + widget.Margin.Width;
|
||||
|
||||
withinLimits &= (accumulatedX + totalX) <= maxRight;
|
||||
withinLimits &= (accumulatedX + totalX / 2) <= maxRight;
|
||||
|
||||
// Widget is visible when no previous sibling has been rejected and its right edge is less than maxRight
|
||||
widget.Visible = withinLimits; // widget.Position.X + widget.Width < maxRight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue