• 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 Ruslan Suhar

    (@rsukhar)

    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.