Use `getBoundingClientRect()` to get real x offset of toggleswitch. Closes #823