Vaadin-grid: Paper-tooltip display issue on row column item

Created on 3 Jan 2018  路  4Comments  路  Source: vaadin/vaadin-grid

Description

Inside my cell I have a class that is broken down into items.

<vaadin-grid-column width="500px" flex-grow="0">
    <template class="header">Autoclip Configuration</template>
    <template>
        <autoclip-config item="[[item]]"></autoclip-config>
    </template>
</vaadin-grid-column>

autoclip-config.html

<div class="block-wrapper" id="upper-wrapper">
    <template is="dom-repeat" items="[[firstAlarmItems]]">
        <autoclip-config-item item="[[item]]"></autoclip-config-item>
    </template>
</div>

autoclip-config-item

<paper-tooltip class="tooltip" animation-delay="0" offset="10">
    <div class="header">Example</div>
    <div class="sub-header">This is my example</div>
</paper-tooltip>

Works properly when it is the last row, but for any other row, the tooltip gets hidden by the rows below it. Each square in the picture is a autoclip-config-item

example1

example2

All 4 comments

This is the same issue as #842, see this comment for possible workaround (placing shared tooltip / menu etc outside of the grid).

BTW the iron-list also has this issue and the same workaround is used in Chrome history.

Is stramel's code a valid workaround to solve this issue as well? I worry that it may be difficult to pass the necessary info up so I can display it correctly from an element outside of the grid.

After trying stramel's code, it did work.

In the meanwhile, if you need a tooltip element working nice with vaadin-grid and not getting clipped, please take a look at this proof of concept: j-tooltip.

The link is out of date, the issue is still happening. Any updates?

Was this page helpful?
0 / 5 - 0 ratings