Full height selection panel

This commit is contained in:
John Lewin 2018-01-05 11:45:11 -08:00
parent ee35b8dd49
commit 8f1e2183e3
2 changed files with 16 additions and 5 deletions

View file

@ -120,13 +120,24 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
};
behavior3DTypeButtons.AddChild(editButton);
this.AddChild(editorPanel = new FlowLayoutWidget(FlowDirection.TopToBottom)
editorPanel = new FlowLayoutWidget(FlowDirection.TopToBottom)
{
Name = "editorPanel",
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit,
};
var scrollable = new ScrollableWidget(true)
{
Name = "editorPanel",
Margin = new BorderDouble(top: 10),
});
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Stretch,
};
scrollable.AddChild(editorPanel);
scrollable.ScrollArea.HAnchor = HAnchor.Stretch;
this.AddChild(scrollable);
HashSet<IObject3DEditor> mappedEditors;
objectEditorsByType = new Dictionary<Type, HashSet<IObject3DEditor>>();

View file

@ -361,14 +361,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
selectedObjectPanel = new SelectedObjectPanel(this, this.Scene, theme, printer)
{
BackgroundColor = theme.InteractionLayerOverlayColor,
VAnchor = VAnchor.Top | VAnchor.Fit,
VAnchor = VAnchor.Stretch,
HAnchor = HAnchor.Left | HAnchor.Fit,
};
selectedObjectContainer = new ResizeContainer(selectedObjectPanel)
{
Width = 200,
VAnchor = VAnchor.Fit | VAnchor.Top,
VAnchor = VAnchor.Stretch,
HAnchor = HAnchor.Right,
SpliterBarColor = theme.SplitterBackground,
SplitterWidth = theme.SplitterWidth,