Add a new api to update geometry of input panel