Added maxWidth/height support
include margin property added

This makes it possible to position and size element including its
margin.