|
@@ -73,9 +73,14 @@ class SpreadDrop extends Component{
|
|
}
|
|
}
|
|
});
|
|
});
|
|
const listWidth = 30+$(this.$list.current).width();
|
|
const listWidth = 30+$(this.$list.current).width();
|
|
- if(num >= 4 && windowWidth-getPageCoordinate(e).boxLeft < listWidth){
|
|
|
|
|
|
+ const wleft = getPageCoordinate(e).boxLeft;
|
|
|
|
+ if(num >= 4 && windowWidth-wleft < listWidth){
|
|
this.setState({
|
|
this.setState({
|
|
- left:windowWidth-listWidth-150
|
|
|
|
|
|
+ left:windowWidth-wleft-listWidth-50
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.setState({
|
|
|
|
+ left:'auto'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
//高度超出时,增加左侧大容器padding
|
|
//高度超出时,增加左侧大容器padding
|