Fix for right positioning of the widget

It's a fix to the fix I made couple of days ago. I've forgotten to use new value
after calculating new position for widget when it doesn't fit the place
on the right side of the input field. Sorry!
Merge pull request #14 from lowski/fix_positioning

Fix for right positioning of the widget