fix #2268

Fixes #2268. This is due to some dartium methods now returning doubles (for sub-pixel positioning). @ussuri