Correct TextInputMenuWidget position for RTL

It appears .offset().width doesn't exist anymore, use $container.width()

Bug: 65483
Change-Id: I3d55337732a852284ed1b3231684c0b18998b8a1