4import QGroundControl.Controls
6/// Label that lines up with a neighbouring icon or dot when vertically centered. The text box has more room above
7/// the capital letters than below the baseline, which would otherwise leave the text low.
10 // Distance the capital letters sit below the middle of the text box; the padding lifts them by half of it
11 bottomPadding: Math.max(0, 2 * (baselineOffset + capitals.tightBoundingRect.y + capitals.tightBoundingRect.height / 2 - contentHeight / 2))