Timeline WIP Relations

pull/5181/head
Roman Roelofsen 8 years ago
parent dde6b9f1a1
commit d7454c44df
  1. 3
      frontend/app/components/wp-table/timeline/wp-timeline-cell-mouse-handler.ts
  2. 21
      frontend/app/components/wp-table/timeline/wp-timeline.header.ts

@ -165,7 +165,8 @@ export function registerWorkPackageMouseHandler(this: void,
const widthInDays = offsetDayCurrent - offsetDayStart;
const moved = renderer.onDaysMoved(wp, dayUnderCursor, widthInDays, mouseDownType);
renderer.assignDateValues(wp, moved);
renderer.update(cell, bar, renderInfo);
wpCacheService.updateWorkPackage(wp);
};
cell.onmouseleave = () => {

@ -198,6 +198,27 @@ export class WpTimelineHeader {
this.headerCell = jQuery(cssClassHeader)[0];
this.outerHeader = jQuery(cssHeaderContainer);
this.setupScrollbar();
// TODO TEST
// const b = document.createElement("div");
// b.style.display = "block";
// b.style.position = "absolut";
// b.style.left = "50px";
// b.style.top = "10px";
// b.style.backgroundColor = "red";
// b.style.width = "50px";
// b.style.height = "50px";
// b.style.zIndex = "99999";
//
// this.headerCell.appendChild(b);
// console.log(b);
// TODO TEST
}
this.containerHeight = jQuery(cssClassTableContainer).outerHeight() + this.headerHeight;

Loading…
Cancel
Save