Skip to content

Commit 289c4a1

Browse files
committed
fit layout
1 parent 22eb302 commit 289c4a1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Mitsubishi Block/Script/Common.vb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Friend Module Common
153153
End If
154154
Next
155155
' Output
156-
Dim fmt = FmtNo(w, h, p, s, block)
156+
Dim fmt = FmtNo(w, h)
157157
Intro()
158158
HxSty(vbTab & "W (mm)" & vbTab & vbTab & ": " + String.Format(fmt, w) & vbCrLf)
159159
HxSty(vbTab & "H (mm)" & vbTab & vbTab & ": " + String.Format(fmt, h) & vbCrLf)
@@ -207,17 +207,11 @@ Friend Module Common
207207
''' </summary>
208208
''' <param name="w">Width.</param>
209209
''' <param name="h">Heigh.</param>
210-
''' <param name="c">Circuit.</param>
211-
''' <param name="s">Spread.</param>
212-
''' <param name="block">Block.</param>
213210
''' <returns>Format.</returns>
214-
Private Function FmtNo(w As Double, h As Double, c As Double, s As Double, block As Double)
211+
Private Function FmtNo(w As Double, h As Double)
215212
Dim wSize = w.ToString().Length
216213
Dim hSize = h.ToString().Length
217-
Dim cSize = c.ToString().Length
218-
Dim sSize = s.ToString().Length
219-
Dim blockSize = block.ToString().Length
220-
Dim maxSize = Max(Max(Max(wSize, hSize), Max(cSize, sSize)), blockSize)
214+
Dim maxSize = Max(wSize, hSize)
221215
Return "{0," + maxSize.ToString() + ":####.#}"
222216
End Function
223217
#End Region

0 commit comments

Comments
 (0)