Bug fix

Handling relative positions/sizes (still a little wonky - broken in IE)
Fixed a mathematical error.