Use tab x midpoint instead or right edge for overflow

- Issue MatterHackers/MCCentral#3779
Clip rather than hide tabs
This commit is contained in:
John Lewin 2018-07-16 14:03:19 -07:00
parent 5007a28de6
commit 70a5ff0602

View file

@ -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;