mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 11:59:34 +00:00
Auto-size for labels tweaked (taller box).
This commit is contained in:
parent
041636dfcf
commit
d4f5218716
1 changed files with 3 additions and 3 deletions
|
@ -93,11 +93,11 @@ SUB AutoSizeLabel (this AS __UI_ControlTYPE)
|
|||
DIM tempFont AS LONG, tempCenter AS INTEGER
|
||||
tempFont = _FONT
|
||||
_FONT this.Font
|
||||
IF this.WordWrap = False AND (this.Height = 23 OR this.Height = uheight) THEN
|
||||
IF this.WordWrap = False AND (this.Height = 23 OR this.Height = uheight + 6) THEN
|
||||
this.Width = __UI_PrintWidth(Caption(this.ID))
|
||||
IF this.Height <> uheight THEN
|
||||
IF this.Height <> uheight + 6 THEN
|
||||
tempCenter = this.Top + this.Height / 2
|
||||
this.Height = uheight
|
||||
this.Height = uheight + 6
|
||||
this.Top = tempCenter - this.Height / 2
|
||||
END IF
|
||||
this.Redraw = True
|
||||
|
|
Loading…
Reference in a new issue