Chatto/ChattoApp
Daniel Burgess ab286307c3 Fix a bug causing keyboard view offset to be incorrect (#204)
* Fix a bug causing keyboard view offset to be incorrect

In some rare cases, if the height of the view is a fractional point
(i.e., not a whole number), it would cause the views to not be offset
despite the keyboard being shown on top of them. This does not happen
with every fractional height. Different devices also behave a little
differently in seemingly identical layouts, due to their pixel density
being different.

The base issue is that, due to floating point rounding errors, two
values that _should_ be identical and pass the guard fail to do so,
because the lack of precision results in them not being equal. By
flooring the values, we can ignore really minor differences and ensure
rounding errors don't cause this issue.

* Unify bma_round methods to use correct calculation

Thanks to @diegosanchezr for the suggested improvement.

* Revert ChattoAdditions bma_round change

Unfortunately, removing this in favor of the Chatto version broke size
calculations, so putting it back...

* Switch to using infix operator to check float comparison

* Add utils to Chatto project
2016-08-22 15:46:32 +01:00
..
ChattoApp Xcode 8.0 b3 + swift 2.3 support (#183) 2016-07-18 23:28:11 +01:00
ChattoApp.xcodeproj Compatibility for Xcode 8 beta 2016-08-08 13:00:58 +01:00
ChattoApp.xcworkspace Chatto inception 2015-11-26 22:48:25 +00:00
ChattoAppTests Fixes linter warnings and updates some rules. Also removes deprecated '++' and '--' 2016-01-27 22:04:32 +00:00
ChattoAppUITests Fixes linter warnings and updates some rules. Also removes deprecated '++' and '--' 2016-01-27 22:04:32 +00:00
Pods Fix a bug causing keyboard view offset to be incorrect (#204) 2016-08-22 15:46:32 +01:00
.swiftlint.yml Fixes linter warnings and updates some rules. Also removes deprecated '++' and '--' 2016-01-27 22:04:32 +00:00
Podfile Updates Podfile 2016-08-08 14:06:55 +01:00
Podfile.lock Runs Pod update 2016-08-08 14:07:37 +01:00