mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4073] Fix Process Definition Heat map styling issue (#4304)
This commit is contained in:
committed by
Eugenio Romano
parent
aae4629e9a
commit
6179bddb92
@@ -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);
|
||||
|
Reference in New Issue
Block a user