Made the quality and materials menus have scroll bars when needed.
This commit is contained in:
parent
7fd9597c8b
commit
31f4a9ffd4
2 changed files with 3 additions and 3 deletions
|
|
@ -43,8 +43,8 @@ namespace MatterHackers.MatterControl
|
|||
static RGBA_Bytes whiteSemiTransparent = new RGBA_Bytes(255, 255, 255, 100);
|
||||
static RGBA_Bytes whiteTransparent = new RGBA_Bytes(255, 255, 255, 0);
|
||||
|
||||
public AnchoredDropDownList(string noSelectionString, Direction direction = Direction.Down)
|
||||
: base(noSelectionString, whiteTransparent, whiteSemiTransparent, direction)
|
||||
public AnchoredDropDownList(string noSelectionString, Direction direction = Direction.Down, double maxHeight = 0)
|
||||
: base(noSelectionString, whiteTransparent, whiteSemiTransparent, direction, maxHeight)
|
||||
{
|
||||
this.HAnchor = HAnchor.ParentLeftRight;
|
||||
this.TextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
AnchoredDropDownList CreateDropdown()
|
||||
{
|
||||
AnchoredDropDownList dropDownList = new AnchoredDropDownList("- default -");
|
||||
AnchoredDropDownList dropDownList = new AnchoredDropDownList("- default -", maxHeight: 300);
|
||||
dropDownList.Margin = new BorderDouble(0, 3);
|
||||
dropDownList.MinimumSize = new Vector2(dropDownList.LocalBounds.Width, dropDownList.LocalBounds.Height);
|
||||
MenuItem defaultMenuItem = dropDownList.AddItem("- default -", "0");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue