Creating test for library search.

This commit is contained in:
Lars Brubaker 2015-08-25 18:49:19 -07:00
parent 2dfa2dae20
commit adf5e3f645
3 changed files with 10 additions and 5 deletions

View file

@ -110,7 +110,8 @@ namespace MatterHackers.MatterControl.CustomWidgets.LibrarySelector
}
// while all the buttons don't fit in the control
if (this.Parent.Width > 0
if (this.Parent != null
&& this.Parent.Width > 0
&& this.Children.Count > 4
&& this.GetChildrenBoundsIncludingMargins().Width > this.Parent.Width)
{