Remove border from last item

This commit is contained in:
John Lewin 2018-04-12 23:08:12 -07:00
parent 7f62ce801d
commit 63c414adc4

View file

@ -28,6 +28,7 @@ either expressed or implied, of the FreeBSD Project.
*/
using System;
using System.Linq;
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
@ -53,8 +54,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.theme = theme;
this.printer = printer;
SectionWidget sectionWidget;
this.AddChild(
new SectionWidget(
sectionWidget = new SectionWidget(
"Options".Localize(),
new GCodeOptionsPanel(sceneContext, printer, theme),
theme,
@ -62,8 +65,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit,
Padding = 0
});
sectionWidget.ContentPanel.Descendants<SettingsRow>().First().Border = 0;
this.AddChild(
loadedGCodeSection = new FlowLayoutWidget(FlowDirection.TopToBottom)
{