Add MagicBox::getSizeWithPadding() helper function
Remove unused MagicBox::setMagicBoxStatic() function
Fix logic with setting up MagicBoxes