Add logic to check width and then call layoutComponent.