Made many more of the factory fixed size settings include the point size scaling so they are the right size.
This commit is contained in:
parent
a65cdb9267
commit
e7c0261d25
17 changed files with 26 additions and 26 deletions
|
|
@ -400,7 +400,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
buttonPanel.CloseAndRemoveAllChildren();
|
||||
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44;
|
||||
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
||||
FlowLayoutWidget modelInfoContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
modelInfoContainer.HAnchor = HAnchor.ParentLeftRight;
|
||||
|
|
@ -495,7 +495,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
private void AddLayerInfo(FlowLayoutWidget buttonPanel)
|
||||
{
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44;
|
||||
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
||||
FlowLayoutWidget layerInfoContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
layerInfoContainer.HAnchor = HAnchor.ParentLeftRight;
|
||||
|
|
@ -520,8 +520,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
buttonPanel.CloseAndRemoveAllChildren();
|
||||
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44;
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
||||
FlowLayoutWidget layerInfoContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
layerInfoContainer.HAnchor = HAnchor.ParentLeftRight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue