Make the add printer page scale correctly

issue: MatterHackers/MCCentral#6000
add printer screen is small when in hi-rez
This commit is contained in:
LarsBrubaker 2020-08-13 11:17:48 -07:00
parent d8375572ba
commit f6cf34eac7
3 changed files with 6 additions and 7 deletions

View file

@ -43,7 +43,6 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
{
private TextButton nextButton;
private AddPrinterWidget printerPanel;
private bool usingDefaultName;
private static BorderDouble elementMargin = new BorderDouble(top: 3);
@ -55,7 +54,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
bool userIsLoggedIn = !ApplicationController.GuestUserActive?.Invoke() ?? false;
this.HeaderText = this.WindowTitle = "Printer Setup".Localize();
this.WindowSize = new VectorMath.Vector2(800, 600);
this.WindowSize = new VectorMath.Vector2(800 * GuiWidget.DeviceScale, 600 * GuiWidget.DeviceScale);
contentRow.BackgroundColor = theme.SectionBackgroundColor;
nextButton = theme.CreateDialogButton("Next".Localize());
@ -143,8 +142,6 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
this.AddPageAction(nextButton);
usingDefaultName = true;
SetElementVisibility();
}