Position progress at favorites bar right edge
- Will need to be revised if favorites bar becomes resizable - Issue MatterHackers/MCCentral#4373 Print progress box overlaps icons on left side
This commit is contained in:
parent
6155ebb4ab
commit
9e616e9b4b
2 changed files with 5 additions and 4 deletions
|
|
@ -52,6 +52,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
protected GuiWidget view3DContainer;
|
||||
protected FlowLayoutWidget topToBottom;
|
||||
protected FlowLayoutWidget leftToRight;
|
||||
protected LibraryListView favoritesBar;
|
||||
|
||||
public PartTabPage(PrinterConfig printer, BedConfig sceneContext, ThemeConfig theme, string tabTitle)
|
||||
: base (tabTitle)
|
||||
|
|
@ -125,12 +126,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
};
|
||||
toolbarAndView3DWidget.AddChild(viewControls3D);
|
||||
|
||||
var dummyContext = new LibraryConfig()
|
||||
var favoritesBarContext = new LibraryConfig()
|
||||
{
|
||||
ActiveContainer = ApplicationController.Instance.Library.ActiveContainer
|
||||
ActiveContainer = ApplicationController.Instance.Library.RootLibaryContainer
|
||||
};
|
||||
|
||||
var favoritesBar = new LibraryListView(dummyContext, theme)
|
||||
favoritesBar = new LibraryListView(favoritesBarContext, theme)
|
||||
{
|
||||
Name = "LibraryView",
|
||||
// Drop containers
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
view3DContainer.AddChild(new RunningTasksWidget(theme)
|
||||
{
|
||||
MinimumSize = new Vector2(100, 0),
|
||||
Margin = new BorderDouble(top: printerActionsBar.Height),
|
||||
Margin = new BorderDouble(top: printerActionsBar.Height + 1, left: favoritesBar.LocalBounds.Width + favoritesBar.DeviceMarginAndBorder.Width + 1),
|
||||
VAnchor = VAnchor.Top | VAnchor.Fit,
|
||||
HAnchor = HAnchor.Left | HAnchor.Fit,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue