work provided by Chr.Fueller to tackle oversized events in calendar-week-print-pre-view

This commit is contained in:
Klaus Leithoff
2010-04-09 14:15:00 +00:00
parent b69a151568
commit 15609abbf4
2 changed files with 10 additions and 2 deletions

View File

@ -13,6 +13,9 @@ function dragEvent()
{
if(minOffset())
{
// set a fixed width
dd.obj.css.width = dd.obj.w + dd.px;
// make a snapshot of the old (original) innerHTML of the dragged event
if(!dd.obj.oldInnerHTML)
{
@ -62,6 +65,10 @@ function dropEvent()
{
dd.obj.div.innerHTML = dd.obj.oldInnerHTML;
}
// restore old width (calEvent width = 100%)
dd.obj.div.style.width = "100%";
dd.obj.moveTo(dd.obj.defx,dd.obj.defy);
}
}