• I have the first column in a table set to be fixed, but the plugin doesn’t seem to calculate the height correctly when the same row in subsequent columns are taller than the corresponding cell in the fixed column. Is there a way to fix this?

    · Website: https://gladstein.staging.wpengine.com
    · TablePress: 1.9
    · TablePress (DB): 36
    · TablePress table scheme: 3
    · Plugin installed: 2017/12/20 12:49:31
    · WordPress: 4.9.1
    · Multisite: no
    · PHP: 7.0.22-0ubuntu0.16.04.1
    · mysqli Extension: true
    · mySQL (Server): 5.7.19-17-log
    · mySQL (Client): mysqlnd 5.0.12-dev – 20150407 – $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
    · ZIP support: yes
    · UTF-8 conversion: yes
    · WP Memory Limit: 128M
    · Server Memory Limit: 512M
    · Magic Quotes: off
    · WP_DEBUG: false
    · WP_POST_REVISIONS: 10

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’m not exactly sure, but this might be caused by the tables only being shown after selecting them in the dropdown. Due to be being hidden when the necessary height calculations are made, these are likely incorrect.
    Can you try again when the tables are directly visible, without having to be chosen in the dropdown?

    Regards,
    Tobias

    Thread Starter amddtim

    (@amddtim)

    Hmm, I think that’s only half the issue. It seems like the fixed column feature is not responsive. I took the table out of the hidden div and if I scale the browser width down small enough to force the fixed column, I get the same problem. But if I reload the browser at that size, the issue is fixed. So it seems to me that the height is not properly sized on window ‘resize’.

    https://gladstein.staging.wpengine.com/vw_state_funding/

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    that observation is correct. From what I know the JS code of the FixedColumns does not do recalculations on resizing. That doesn’t really happen much in real life though.
    Unfortunately, I don’t know enough about the internal details of the JS code (it’s an external library from https://www.datatables.net/) in order to change this ??

    Regards,
    Tobias

    Thread Starter amddtim

    (@amddtim)

    Bummer. I wonder if there’s a way to trigger a recalculation for the extension. Every time I’m changing a tab, I was triggering a window resize, but that doesn’t seem to be enough. It’s like I need an initialization or reinit.

    Thread Starter amddtim

    (@amddtim)

    Do you know if the responsive extension would suffer the same problem? If I can’t get the fixed column to work, a backup option would be to just have a responsive scroll.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the collapse mode of the Responsive Tables Extension should have the same problem. The pure scroll mode does not.

    Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fixed Columns Height’ is closed to new replies.