jdirigoyen --
When you resize an element, if you want it to remain in the same place you need to set the position to absolute.
Dav
Dav Glass
dav.glass@...
blog.davglass.com
+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
McDonalds Certified Food Specialist is to fine cuisine +
----- Original Message ----
From: jdirigoyen <
jdirigoyen@...>
To:
ydn-javascript@...
Sent: Friday, July 4, 2008 10:31:59 AM
Subject: [ydn-javascript] Problem Resize two DIV one below another
I have two DIV, one below another, when a resize one the other DIV
change this position. how to prevent this behavior ?
Code [I'm creating dynamically the DIV ]:
var elementDivEvent = document.createElement("div");
elementDivEvent.setAttribute("id", "_event"+intEventoId);
elementDivEvent.className = "CORE_event_container";
var resize = new YAHOO.util.Resize(elementDivEvent, {
handles: ['t', 'b'],
proxy: true,
ghost: true,
status: true,
draggable: true,
animate: true,
animateDuration: .75,
animateEasing: YAHOO.util.Easing.backBoth
});
Thanks.
------------------------------------
Yahoo! Groups Links