I have been trying to create a resizable div using JQuery UI which will also resize a table contained within the div.
$("#WorkRequests").resizable({
minWidth: $("#WorkRequests").width(),
maxWidth: $("#WorkRequests").width(),
handles: 's',
resize: function (event, ui) {
var minRows = 10;
var rowHeight = 35;
var rows = $("#tbl-WorkRequests-page-size").val();
if ((rows * rowHeight) > $("#WorkRequests").height()) {
if (rows > minRows) {
$("tbl-WorkRequests-page-size").val((rows - minRows).toString());
} else {
return false;
}
}
}
});
However when they resize the div to be too small so that it reaches "return false;" it does not cancel the resize event like with other JQuery ui things. Why?
Also the below line:
$("tbl-WorkRequests-page-size").val((rows - minRows).toString());
Should set the value of a select list, however it does not, why?
resizemethod? This would hook jqueryUIs own check methods