Added x and y getters on Element.
Merge pull request #1789 from memetolsen/patch-2

Added x and y getters on Element.