LinearLayout Margin not respecting widget scale

I’ve got a bunch of ui::Buttons passed into a scrollview with the vertical layout. Adding in a margin of 30px of the bottom stays 30, even if I scale the button up four times. I’d expect the margin would automatically adjust to become 120px to account for the widget scaling, but it doesn’t seem like that’s the case.

My current workaround is to add the getScaleX or getScaleY to any of the margin params as needed.

param->setMargin(ui::Margin(0, 15.0f*btn->getScaleY(), 0, 15.0f*btn->getScaleY()));

Is this intended?