commit | c45b1d4ae4afa52f292df2bf1b09a5691eef1cfa | [log] [tgz] |
---|---|---|
author | Alan Viverette <alanv@google.com> | Mon Nov 16 15:38:59 2015 -0500 |
committer | Alan Viverette <alanv@google.com> | Mon Nov 16 15:38:59 2015 -0500 |
tree | 4bf6308fc0c670f3e382e99ed9cb05c09ef55692 | |
parent | 19c3f7fa2f68b4a1e2ddab55f98139b0af16ef01 [diff] |
Use correct rounding in View for potentially negative values Fast rounding doesn't work for negative values, so use Math.round() where we might encounter negative values. Use Math.floor() and ceil() for rounding down and up, respectively. Bug: 25695621 Change-Id: I94831b8eb7552fc24cbe5808e923de1674d8ba6d