Fixed the focus bug and the getAbsolutePosition bug.