Revert linear layout weight distribution algorithm

Ensures that weight is fully (though not necessarily evenly) distributed.
Previously, we could end up with extra undistributed pixels at the end.

Bug: 27690033
Change-Id: If3db83f33145500fa8be006f373c54297733e76f
1 file changed