mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
work provided by Chr.Fueller to tackle oversized events in calendar-week-print-pre-view
This commit is contained in:
parent
8e575ed7cc
commit
ddb2ff2155
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -212,11 +212,12 @@ dd.getWH = function(d_o)
|
||||
d_o.h = dd.getDivH(d_o);
|
||||
if(d_o.css)
|
||||
{
|
||||
d_o.css.width = d_o.w + dd.px;
|
||||
// dont set the width at the beginning
|
||||
//d_o.css.width = d_o.w + dd.px;
|
||||
d_o.css.height = d_o.h + dd.px;
|
||||
d_o.dw = dd.getDivW(d_o)-d_o.w;
|
||||
d_o.dh = dd.getDivH(d_o)-d_o.h;
|
||||
d_o.css.width = (d_o.w-d_o.dw) + dd.px;
|
||||
//d_o.css.width = (d_o.w-d_o.dw) + dd.px;
|
||||
d_o.css.height = (d_o.h-d_o.dh) + dd.px;
|
||||
}
|
||||
else d_o.dw = d_o.dh = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user