Improved repositioning input extender's extension

Bug 48145

Change-Id: Idb1173643afd3e8609bcdaafa7c9a2f70b3b7343