• Resolved EvD

    (@elkevandrunen)


    Hi all,

    I have created 2 seperate tables. Each table has 4 rows and in the left column are my 4 products (each has its own line). When you hover on the name of a product a popup window appears with an image of that specific product. The popup window with the image is larger than the height of table 1 so the popup windows partially covers table 2 which is directly below table 1.

    That is all according to plan.

    But my tables have many columns which make the tables very wide. I therefor have to enable horizontal scrolling for each table to keep them readable. But when I enable the horizontal scrolling option in Tablepress then my popup window only stays inside the corresponding table. And because the table height is much smaller than my popup window height my product image is cutoff.

    I therefor would like my popup window to be outside the table. But I don’t know how to do that.

    The CSS code I have used for my popup window is:

    .tablepress-id-12 td {
    position: relative;
    } .tablepress-id-12 .info-box {
    display: none;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 195px;
    border: 2px solid #628eB2;
    width: 300px;
    height: 300px;
    padding: 5px;
    background-color: #ffffff;
    color: #000000;
    font-family: source sans pro;
    font-weight: normal;
    } .tablepress-id-12 th:hover .info-box,
    .tablepress-id-12 td:hover .info-box {
    display: block;
    }

    And the code in the left column cell of my table is for example:

    <b>Product name X</b>*
    

    I hope someone can help me put the popup windows outside my table.

    • This topic was modified 1 year, 11 months ago by EvD.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter EvD

    (@elkevandrunen)

    Strange, I cannot seem to copy the code of the tablepress cell into my post. But in the cell the info-box is called so an image can be loaded into it.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not sure that this will be possible, for technical reasons, I’m afraid. Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter EvD

    (@elkevandrunen)

    Hi Tobias,

    Thank you for your quick message. Would it be possible to send you the link by email?

    Best, Elke

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure! Please send it to me via email then. The address is on https://tablepress.org/impressum/

    Regards,
    Tobias

    Thread Starter EvD

    (@elkevandrunen)

    Hi Tobias,

    The solution you mailed worked perfect. By using a static position of the tooltip window the images will not be cutoff anymore.

    I followed your instruction and change this:

    .tablepress-id-11 td {

      position: relative;

    }

    To this:

    #tablepress-11_wrapper .dataTables_scrollBody {

        position: static !important;

    }

    And it now works great. Thanks for your perfect support.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,

    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tooltip popup window cutoff with horizontal scrolling enabled’ is closed to new replies.