[ADF-4073] Fix Process Definition Heat map styling issue (#4304)

This commit is contained in:
davidcanonieto
2019-02-12 13:10:51 +00:00
committed by Eugenio Romano
parent aae4629e9a
commit 6179bddb92
2 changed files with 12 additions and 12 deletions

View File

@@ -15,12 +15,12 @@
* limitations under the License.
*/
/* tslint:disable:component-selector */
/* tslint:disable:component-selector */
import { AfterViewInit, Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core';
const POSITION = { BOTTOM: 'bottom', LEFT: 'left', RIGHT: 'right', TOP: 'top'};
const STRATEGY = { CURSOR: 'cursor', ELEMENT: 'element'};
const IS_ACTIVE_CLASS = 'is-active';
const POSITION = { BOTTOM: 'bottom', LEFT: 'left', RIGHT: 'right', TOP: 'top' };
const STRATEGY = { CURSOR: 'cursor', ELEMENT: 'element' };
const IS_ACTIVE_CLASS = 'adf-is-active';
@Component({
selector: 'diagram-tooltip',
@@ -100,10 +100,10 @@ export class DiagramTooltipComponent implements AfterViewInit, OnDestroy {
private handleMouseEnter(event): void {
let props;
if (this.strategy === STRATEGY.ELEMENT ) {
if (this.strategy === STRATEGY.ELEMENT) {
props = event.target.getBoundingClientRect();
} else {
props = {top: (event.pageY - 150), left: event.pageX , width: event.layerX, height: 50};
props = { top: (event.pageY - 150), left: event.pageX, width: event.layerX, height: 50 };
}
let top = props.top + (props.height / 2);