The fix seems to be to call Fit before calling CreateStatusLine, or try calling SetSize after frame creation.