| 570 | if (top + $elmnt.height() >= winHeight) $elmnt.css('height', winHeight - top - 1 + 'px'); | 570 | if (top + $elmnt.height() >= winHeight) $elmnt.css('height', winHeight - top - 1 + 'px'); |
| 571 | if (left + $elmnt.width() >= winWidth) $elmnt.css('width', winWidth - left - 1 + 'px'); | 571 | if (left + $elmnt.width() >= winWidth) $elmnt.css('width', winWidth - left - 1 + 'px'); |
| 572 | } | 572 | } |
| 573 | if (top < topBarLastY && maxX >= topBarFirstX && left <= topBarFirstX) { | 573 | //if (top < topBarLastY && maxX >= topBarFirstX && left <= topBarFirstX) { |
| 574 | $elmnt.css('width', width - 1 + 'px'); | 574 | // $elmnt.css('width', width - 1 + 'px'); |
| 575 | } | 575 | // } |
| 576 | $elmnt.css({ left, top }); | 576 | $elmnt.css({ left, top }); |
| 577 | $elmnt.off('mouseup').on('mouseup', () => { | 577 | $elmnt.off('mouseup').on('mouseup', () => { |
| 578 | if ( | 578 | if ( |