Bug 889765 - [MMS] Resizing algorithm is not working properly