Hi
I've got a slight issue which only comes to light when running the production version of my application.
I have an anchor element which is near to the top of the screen, the tooltip is generated using a template and displays the content correctly when hovering over the anchor. If the content of the tooltip exceeds the available space to the top of the screen, in development it flips the tooltip to display under the anchor. Unfortunately this does not happen when released, the tooltip fails to flip correctly.
Here's my page content
<
ng-template
#templateMetricTooltip>
<
div
class
=
"metric-tooltip-content"
>
<
div
class
=
"name"
>{{metric.name}}</
div
>
<
div
class
=
"description"
>{{ metric.description }}</
div
>
<
div
class
=
"section"
>Calculation</
div
>
<
div
class
=
"formula"
>{{metric.formula}}</
div
>
</
div
>
</
ng-template
>
<
div
class
=
"name"
kendoTooltip [tooltipTemplate]="templateMetricTooltip"
tooltipClass
=
"metric-tooltip"
style
=
"cursor: pointer"
>
<
span
[title]="metric"
class
=
"dotted"
>{{ caption.trim() }}</
span
>
</
div
>
The variable metric being referenced in the template, is declared in my controller class. As I said,there is no problem with the content of the tooltip, it's the position when compiled to production. Is there any workaround to delay the positioning of the tooltip until after the content has been rendered?
Thanks
Keith