jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

Constraint fixes #340

Closed mikrohard closed 8 years ago

mikrohard commented 8 years ago

These are some autolayout constraint fixes just as the title says.

1.) By removing all the constraints on the bezelView the intrinsic content size constraits of the MBBackgroundView were also removed. This caused the bezel to be extend over the whole bounds if the HUD was being moved from one superview to a new one. By removing only the known constraints the setContentHuggingPriority also becomes unnecessary.

2.) The second commit just makes sure that top/bottom spacer constraints are removed before attaching new ones.

matej commented 8 years ago

Good catch! Thanks.