• Resolved crxed

    (@crxed)


    Can you help me figure something out?
    When I open the page from the provided link, and open any of the colored items you can see the TablePress table and you are able to scroll horizontally on Android Chrome.

    But when on that same page, you do a filter or search and open the same colored item, the scrollbar does not show anymore?

    I’ve also asked the dev of the calendar plugin, but he wanted me to ask here.
    https://ww.wp.xz.cn/support/topic/no-scrollbar-in-filtered-event/

    Any idea?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    ashanjay’s assessment (last comment in that thread) is pretty much correct: When the page is loaded initially, there is the HTML code for the tables (coming from TablePress). In addition, TablePress runs some JavaScript code to add the extra markup for the scrolling (additional HTML code wrappers, CSS code, …). Now, when you do that filtering, all that added HTML code is removed and replaced with the HTML code for the filtered items (via an AJAX call to the server). However, when this is done, that second step, with the TablePress JavaScript code, is not running again — and thus, the horizontal scrolling is not added.

    Unfortunately, I can’t think of a quick and direct way to repeat this step (it would need to be a JavaScript integration into the Events Calendar plugin). However, there is an alternative: TablePress offers a second implementation of Horizontal Scrolling (the “Scroll” mode of its Responsive Tables premium feature module, see http://tablepress.org/modules/responsive-tables/#scroll-mode). This basically only requires the first step, so that this would still work with these tables (as long as they don’t use the “Table Features for Site Visitors”, which is the case right now). To use this, you would need to upgrade to TablePress Pro, which then gives you this additional “Scroll” mode.

    Best wishes,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Horizontal scroll only in some cases’ is closed to new replies.