WIP Timeline: Publish Drag'n'drop events

pull/5094/head
Roman Roelofsen 8 years ago
parent 774210a873
commit 7fa1f54bf3
  1. 5
      frontend/app/components/wp-table/timeline/wp-timeline-cell.ts
  2. 2
      frontend/app/components/wp-table/timeline/wp-timeline.header.ts

@ -92,8 +92,8 @@ export class WorkPackageTimelineCell {
due.add(days, "days"); due.add(days, "days");
wp.dueDate = due.format("YYYY-MM-DD") as any; wp.dueDate = due.format("YYYY-MM-DD") as any;
this.updateView(renderInfo); // this.updateView(renderInfo);
// this.wpCacheService.updateWorkPackage(wp); this.wpCacheService.updateWorkPackage(wp as any);
}; };
const keyPressFn = (ev: JQueryEventObject) => { const keyPressFn = (ev: JQueryEventObject) => {
@ -148,6 +148,7 @@ export class WorkPackageTimelineCell {
this.bar.style.cssFloat = "left"; this.bar.style.cssFloat = "left";
this.bar.style.zIndex = "50"; this.bar.style.zIndex = "50";
this.bar.style.marginLeft = renderInfo.viewParams.scrollOffsetInPx + "px"; this.bar.style.marginLeft = renderInfo.viewParams.scrollOffsetInPx + "px";
this.bar.style.cursor = "move";
const start = moment(wp.startDate as any); const start = moment(wp.startDate as any);
const due = moment(wp.dueDate as any); const due = moment(wp.dueDate as any);

@ -81,7 +81,7 @@ export class WpTimelineHeader {
} }
this.headerCell.style.height = jQuery(cssClassTableBody).outerHeight() + 'px'; this.headerCell.style.height = jQuery(cssClassTableBody).outerHeight() + 'px';
this.marginTop = jQuery(this.headerCell).outerHeight(); this.marginTop = 45;
this.globalHeight = jQuery(cssClassTableBody).outerHeight(); this.globalHeight = jQuery(cssClassTableBody).outerHeight();
} }

Loading…
Cancel
Save