Bug 1370217

Summary: sparkline tooltip splits into 2 lines
Product: [oVirt] ovirt-engine-dashboard Reporter: Lucie Leistnerova <lleistne>
Component: GeneralAssignee: Vojtech Szocs <vszocs>
Status: CLOSED DUPLICATE QA Contact: Pavel Novotny <pnovotny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedFlags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-26 12:40:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
sparkline tooltip 2 lines none

Description Lucie Leistnerova 2016-08-25 14:36:37 UTC
Created attachment 1194050 [details]
sparkline tooltip 2 lines

Description of problem:
If hour in sparkline tooltip has 2 digits, tootlip splits into 2 lines.

Version-Release number of selected component (if applicable):
ovirt-engine-dashboard-1.0.2-1.el7ev.x86_64

How reproducible: unknown


Steps to Reproduce:
1. log into admin portal
2. need running VMs, that generate some usage
3. see Dashboard, if the sparkline values are > 0, move the mouse over it

Actual results: if the hour in tooltip has 2 digits but with unknown exact conditions, it splits into 2 lines, see attachment


Expected results: all tooltips are only in 1 line


Additional info:
Strange behavior on CPU sparkline, where I have most of the values = 0%, the last value is also 0, but before that there are 2 values that are shown as > 0 on the sparkline. In this case if I move the mouse from left to right, tooltips are always in 1 row. But when I move mouse from right to left it is in 2 lines.

I can't figure out on which exact conditions the tooltip splits.

tested in Firefox 47.0

Comment 1 Vojtech Szocs 2016-08-26 12:40:22 UTC
(In reply to Lucie Leistnerova from comment #0)
> Additional info:
> Strange behavior on CPU sparkline, where I have most of the values = 0%, the
> last value is also 0, but before that there are 2 values that are shown as >
> 0 on the sparkline. In this case if I move the mouse from left to right,
> tooltips are always in 1 row. But when I move mouse from right to left it is
> in 2 lines.

Nice catch! I've noticed the same behavior when looking into this bug.

I wasn't sure what exactly triggers the wrapping, however this was fixed by preventing text to wrap in bug 1347238 so I'd say it's fixed.

*** This bug has been marked as a duplicate of bug 1347238 ***