Title: Feature request &#8211; callback function
Last modified: September 1, 2016

---

# Feature request – callback function

 *  Resolved [Mike Clarke](https://wordpress.org/support/users/rawthey/)
 * (@rawthey)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/feature-request-callback-function/)
 * I’ve had problems with Google maps not being displayed correctly if they are 
   not in the first tab. I understand that this is due to the map being rendered
   with zero height and width if the tab containing the content is not visible on
   page load.
 * I’ve patched my copy of Tabby Responsive Tabs to enable the shortcode to accept
   the name of a JavaScript function to be used as a callback when the tab is clicked.
   This enables me to defer the generation of the map until the first time the tab
   is opened. I’ve been successfully using this for a while on my website and you
   can see it working at [http://www.sedbergh.org.uk/accommodation/bed-and-breakfast/](http://www.sedbergh.org.uk/accommodation/bed-and-breakfast/)
   if you click on the “View details” link for any of the B&B’s in the list on that
   page.
 * Would it be possible to add an optional callback feature to the official plugin?
   I can supply a copy of my changes if you’re interested in making use them.
 * [https://wordpress.org/plugins/tabby-responsive-tabs/](https://wordpress.org/plugins/tabby-responsive-tabs/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/feature-request-callback-function/#post-7712005)
 * Thank you for the suggestion, this sounds like a great idea.
 * If you can send me a messsage via [http://cubecolour.co.uk/contact/](http://cubecolour.co.uk/contact/)
   and send me details of your changes, I should be able to add this to the next
   version of the plugin & credit you for the callback feature once I have tested
   it.
 *  Thread Starter [Mike Clarke](https://wordpress.org/support/users/rawthey/)
 * (@rawthey)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/feature-request-callback-function/#post-7712030)
 * Thanks, I’ve replied via your contact page.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature request – callback function’ is closed to new replies.

 * ![](https://ps.w.org/tabby-responsive-tabs/assets/icon-256x256.jpg?rev=2682041)
 * [Tabby Responsive Tabs](https://wordpress.org/plugins/tabby-responsive-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tabby-responsive-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tabby-responsive-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/tabby-responsive-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tabby-responsive-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tabby-responsive-tabs/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mike Clarke](https://wordpress.org/support/users/rawthey/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/feature-request-callback-function/#post-7712030)
 * Status: resolved