3.0.0

restrict the resizing

How to restrict the resizing while moving the column into right side.
Hussy Kishy
June 23,
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
June 23,
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
June 24,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.