Add dialog element, alignment bugfixes.
Add getters for (max) width.
Add calculateDimensions to base element, fix maxwidth in text elements when scaling, implement alignment top.
Expose cursor position, add hovering.