Thanks for the post, but what is being suggested in the thread is what I am already doing.

The problem is that availableGeometry is returning exatly the same as screenGeometry.