控制table拖拽不靠在一起

This commit is contained in:
Tim 2016-06-23 14:58:40 +08:00
parent 126bf9c195
commit 563fb3b459
1 changed files with 1 additions and 1 deletions

View File

@ -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;