Put in max height for slice settings.
This commit is contained in:
parent
87a29f3714
commit
48633bce32
3 changed files with 4 additions and 4 deletions
|
|
@ -20,8 +20,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 StyledDropDownList(string noSelectionString, Direction direction = Direction.Down)
|
||||
: base(noSelectionString, whiteTransparent, whiteSemiTransparent, direction)
|
||||
public StyledDropDownList(string noSelectionString, Direction direction = Direction.Down, double maxHeight = 0)
|
||||
: base(noSelectionString, whiteTransparent, whiteSemiTransparent, direction, maxHeight)
|
||||
{
|
||||
this.TextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
this.MenuItemsBorderWidth = 1;
|
||||
|
|
|
|||
|
|
@ -643,7 +643,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
case OrganizerSettingsData.DataEditTypes.LIST:
|
||||
{
|
||||
StyledDropDownList selectableOptions = new StyledDropDownList("None", Direction.Up);
|
||||
StyledDropDownList selectableOptions = new StyledDropDownList("None", maxHeight: 200);
|
||||
selectableOptions.Margin = new BorderDouble();
|
||||
|
||||
string[] listItems = settingData.ExtraSettings.Split(',');
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
foreach (string name in replaceWithSettingsStrings)
|
||||
{
|
||||
string thingToReplace = "{" + "{0}.FormatWith(name)" + "}";
|
||||
string thingToReplace = "{" + "{0}".FormatWith(name) + "}";
|
||||
gcodeWithMacros = gcodeWithMacros.Replace(thingToReplace, ActiveSliceSettings.Instance.GetActiveValue(name));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue