Ngx-bootstrap: Vertical positioning problem with tooltips when wrapping text

Created on 4 Jul 2016  路  3Comments  路  Source: valor-software/ngx-bootstrap

When a tooltip is forced to wrap its content, it is no longer positioned correctly in vertical space. (not moved upwards)

image

_Sidenote: This causes a bug with the hover effect in cases with little space available._

comp(tooltip) easy (hours) issue

Most helpful comment

I solved that problem for now, by using this:
.some-container .tooltip .tooltip-inner {
width: 7em;
white-space: normal;
}

From https://github.com/valor-software/ng2-bootstrap/issues/808

EDIT:

Actually to avoid using the general .css file I found out I could use this in styles of the component that is using the tooltips:

:host /deep/ .tooltip .tooltip-inner {
max-width: none;
white-space: nowrap;
}

All 3 comments

I solved that problem for now, by using this:
.some-container .tooltip .tooltip-inner {
width: 7em;
white-space: normal;
}

From https://github.com/valor-software/ng2-bootstrap/issues/808

EDIT:

Actually to avoid using the general .css file I found out I could use this in styles of the component that is using the tooltips:

:host /deep/ .tooltip .tooltip-inner {
max-width: none;
white-space: nowrap;
}

@PEsteves8 thank you! :D

Should be fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghiscoding picture ghiscoding  路  3Comments

Scooviese picture Scooviese  路  3Comments

juanitavollmering picture juanitavollmering  路  3Comments

haisaco picture haisaco  路  3Comments

hugonne picture hugonne  路  3Comments