introduced contentHeight/contentWidth and resize percentage widgets according its content sizes

This solves #141 for me