Revise widget scaling

- Issue MatterHackers/MCCentral#5475
During print leveling the bed image is too big
This commit is contained in:
jlewin 2019-05-07 16:12:29 -07:00
parent 4674d009e4
commit 487384a061
2 changed files with 3 additions and 13 deletions

View file

@ -91,13 +91,13 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
public override void OnBoundsChanged(EventArgs e)
{
if (bedBounds.Height < bedBounds.Width)
if (this.Height < this.Width)
{
scalingFactor = this.Width / bedBounds.Width;
scalingFactor = this.Height / bedBounds.Height;
}
else
{
scalingFactor = this.Height / bedBounds.Height;
scalingFactor = this.Width / bedBounds.Width;
}
base.OnBoundsChanged(e);