document glass maximize work-around