Fix widget drawing in docs

The docs are using api methods which no longer exist.