fix input event offset in container widgets