Title: Flipbox height calc
Last modified: July 21, 2017

---

# Flipbox height calc

 *  Resolved [Leandro Conde Trombini](https://wordpress.org/support/users/trombini/)
 * (@trombini)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/flipbox-height-calc/)
 * I was using the flibox widget with a tweentyseventeen child theme and I saw that
   the height javascript calc of box was having a value less than it needed.
    So
   I checking in the cl-flipbox.js file that controls this calc, so I did a modification
   that worked fine at line 50:
 * -BEFORE
    height = this.forceSquare ? width : (Math.max(frontContentHeight, backContentHeight)
   + 2 * this.padding);
 * -AFTER
    height = this.forceSquare ? width : (Math.max(frontContentHeight, backContentHeight)
   + 20 * this.padding);

Viewing 1 replies (of 1 total)

 *  Plugin Author [Convertful Team](https://wordpress.org/support/users/rsukhar/)
 * (@rsukhar)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/flipbox-height-calc/#post-9364820)
 * Hey Leandro,
 * Thanks for the note! Actually, “2” is the proper value there, as it stands for“
   add padding twice”.
 * I tested with original tweentyseventeen: everything works fine. Probably, some
   child theme’s styles override flipbox styles, and as all CodeLights elements 
   are vendor-prefixed, it means that, probably, some of the child theme’s styles
   should be reworked to be more specific.
 * But if your workaround does the job, it’s ok as well! Just please remember: when
   you update the plugin, this manual code fixes will be overwritten.

Viewing 1 replies (of 1 total)

The topic ‘Flipbox height calc’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/codelights-shortcodes-and-widgets_6b7989.
   svg)
 * [Sidebar Widgets by CodeLights](https://wordpress.org/plugins/codelights-shortcodes-and-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codelights-shortcodes-and-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codelights-shortcodes-and-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/codelights-shortcodes-and-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codelights-shortcodes-and-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codelights-shortcodes-and-widgets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Convertful Team](https://wordpress.org/support/users/rsukhar/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/flipbox-height-calc/#post-9364820)
 * Status: resolved