Skip to content

Commit c27b83c

Browse files
committed
[Bug 13923] Make sure the formattedHeight of a button takes into account the icon's height, if any
1 parent 9d32fee commit c27b83c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/src/button.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,8 +1890,8 @@ Exec_stat MCButton::getprop(uint4 parid, Properties which, MCExecPoint& ep, Bool
18901890
if (icons->curicon != NULL)
18911891
{
18921892
MCRectangle trect = icons->curicon->getrect();
1893-
if (trect.height > fheight)
1894-
fheight = trect.height;
1893+
// PM-2015-07-15: [[ Bug 13923 ]] If a button has an icon, increase its formattedHeight by the icon's height
1894+
fheight += trect.height;
18951895
}
18961896
}
18971897
else if ((getstyleint(flags) == F_CHECK || getstyleint(flags) == F_RADIO) && CHECK_SIZE > fheight)

0 commit comments

Comments
 (0)