:: Forum >> Version 1 >>
restrict the resizing
More information on this topic is available in the documentation section:
/active.examples/moving-resizing.html.
How to restrict the resizing while moving the column into right side.
Hussy Kishy
Thursday, June 23, 2005
Did not try this, but the first idea is to put all genresize.js code on the page and create activate / deactivate resizing buttons with last lines:
document.onmousedown = doDown;
document.onmouseup = doUp;
document.onmousemove = doMove;
And for deactivate ="" or null (maybe needs to capture those events first and then restore).
Carlos
Thursday, June 23, 2005
Found that replacing genresize.js lines:
el = event.srcElement;
if (el.className == "resizeMe") {
str = getDirection(el);
//Fix the cursor
if (str == "") str = "default";
else str += "-resize";
el.style.cursor = str;
}
with :
if (this.className == "resizeMe") {
el = event.srcElement;
str = getDirection(el);
//Fix the cursor
if (str == "") str = "default";
else str = "move";
el.style.cursor = str;
}
Solve the Mozilla "resize column to right direction" issue, but looses the ability to know when mouse over borders and also corner cursor modes.
HTH
Carlos
Friday, June 24, 2005
This topic is archived.
Back to /active.examples/moving-resizing.html
Documentation:
Forum search