Component width fix

When first element is rendered but not painted the width is 0 and
dataview container is not sized correctly. Added an paint listener to
first element to update the sizes