Set padding after computing leftRightMargin
- Issue MatterHackers/MCCentral#2151 Investigate LibraryQueueViewRefreshesOnAddItem failure
This commit is contained in:
parent
c898f344bb
commit
9b13955907
1 changed files with 3 additions and 3 deletions
|
|
@ -91,9 +91,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
}
|
||||
}
|
||||
|
||||
// put in padding to get the "other" side of the outside icons
|
||||
this.Padding = new BorderDouble(leftRightMargin, 0);
|
||||
|
||||
reflowingContent = false;
|
||||
}
|
||||
|
||||
|
|
@ -127,6 +124,9 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
// set the margin to be 1/2 the space (it will happen on each side of each icon)
|
||||
leftRightMargin = (int)(remainingSpace > 0 ? spacePerColumn / 2 : 0);
|
||||
|
||||
// put in padding to get the "other" side of the outside icons
|
||||
this.Padding = new BorderDouble(leftRightMargin, 0);
|
||||
|
||||
return newColumnCount;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue