tied childstyle to this.state.childstyle, should adapt width on re-render, need to force re-render on page resize