Revise widget scaling
- Issue MatterHackers/MCCentral#5475 During print leveling the bed image is too big
This commit is contained in:
parent
4674d009e4
commit
487384a061
2 changed files with 3 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue