Add getHeight callback.