|
@@ -15,9 +15,9 @@ class LastDrug extends Component {
|
|
this.setDrugInfo = this.setDrugInfo.bind(this);
|
|
this.setDrugInfo = this.setDrugInfo.bind(this);
|
|
}
|
|
}
|
|
handleMouseEnterDrug(index, item) {
|
|
handleMouseEnterDrug(index, item) {
|
|
- const drugNameWidth = parseInt($('#'+item.id)[0].offsetWidth)
|
|
|
|
- const imgLeft = drugNameWidth/2-8
|
|
|
|
- $('#'+item.id).find('img').css('left', imgLeft)
|
|
|
|
|
|
+ // const drugNameWidth = parseInt($('#'+item.id)[0].offsetWidth)
|
|
|
|
+ // const imgLeft = drugNameWidth/2-8
|
|
|
|
+ // $('#'+item.id).find('img').css('left', imgLeft)
|
|
this.setState({
|
|
this.setState({
|
|
currentIndex: index,
|
|
currentIndex: index,
|
|
})
|
|
})
|