frame: fix position error when screen resolution changed

tower: https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/838e8ac018664eebbc88074a08535932/

Change-Id: I8a0a6361054668bb58447cd7e1b8bdd3eca82fea