bug 864107 - constrain restored window dimensions to available screen area. r=ttaubert