Creating test for library search.
This commit is contained in:
parent
2dfa2dae20
commit
adf5e3f645
3 changed files with 10 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue