控制table拖拽不靠在一起
This commit is contained in:
parent
126bf9c195
commit
563fb3b459
|
@ -38,7 +38,7 @@
|
|||
if (mousedown == true){
|
||||
var width = (tdWidth + (evt.screenX - screenXStart)) - p1 + "px";//计算后的新的宽度
|
||||
var width2 = (tdWidth2 - (evt.screenX - screenXStart)) - p2 + "px";
|
||||
if (parseInt(width)<0 || parseInt(width2)<0 || tdWidth > totalWidth || tdWidth2 > totalWidth){
|
||||
if (parseInt(width)<5 || parseInt(width2)<5 || tdWidth > totalWidth || tdWidth2 > totalWidth){
|
||||
tartgetTd = null;
|
||||
resizeable = false;
|
||||
mousedown = false;
|
||||
|
|
Loading…
Reference in New Issue