X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fwclib.js;h=ff5d1b0cdada42c58dc250b6c262b203ee04594d;hb=5e22950505c7d8d1221bb61c3d9f836013c2fe60;hp=4714313a754b3141424a445e6b0c2b2b42ae19a2;hpb=cd39850a3746f8a5bf1f4c082afd3a8d644f9f3c;p=citadel.git diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 4714313a7..ff5d1b0cd 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -509,8 +509,14 @@ function NotesResizeMouseMove(evt) { divTop = parseInt(d.style.height); divLeft = parseInt(d.style.width); - d.style.height = (divTop + y_increment) + 'px'; - d.style.width = (divLeft + x_increment) + 'px'; + newHeight = divTop + y_increment; + if (newHeight < 50) newHeight = 50; + + newWidth = divLeft + x_increment; + if (newWidth < 50) newWidth = 50; + + d.style.height = newHeight + 'px'; + d.style.width = newWidth + 'px'; saved_x = x; saved_y = y;