Coder Social home page Coder Social logo

Final height after finish loading about tabtab.js HOT 9 OPEN

Messa1 avatar Messa1 commented on September 1, 2024
Final height after finish loading

from tabtab.js.

Comments (9)

gijsroge avatar gijsroge commented on September 1, 2024

Could you provide a codepen to demonstrate the issue perhaps?

from tabtab.js.

Messa1 avatar Messa1 commented on September 1, 2024

In a codepen everything works fine.
http://codepen.io/anon/pen/OyzGwP

I will check also my other jquery code.
When i found the problem i will post a comment.

////
When i comment some other jquery out i works.
But also the position of the tabs make some change.
For example when i put i above the slider it works.

So i use my Quick & Dirty fix for now.

var height = $( ".tab__content-item.active" ).outerHeight();
$( ".js-tabs-height" ).height(height);

from tabtab.js.

z1haze avatar z1haze commented on September 1, 2024

I can confirm this bug as well.. Not sure how to fix it.. The active tab has a larger height than the .js-tabs-height ... can you please fix

from tabtab.js.

gijsroge avatar gijsroge commented on September 1, 2024

Provide me with a codepen that replicates the bug so I can debug. Thanks!

from tabtab.js.

Sim3k86 avatar Sim3k86 commented on September 1, 2024

I have the same problem.
After web page loads, tabs have larger height than .js-tabs-height
After changing tabs and going back to first one, it seems fixed, but after site refresh it's bad again.

This bug is NOT possible to replicate on CodePen as @Messa1 stated above, it's possible to get that bug only on production/development site.

If you would be willing to debug live site, I can make you an admin account on my Wordpress website.

Btw. have a look at: http://kari.sim3k86.linuxpl.eu/oferta/
You should understand what the bug is.

Waiting for answer,
Cheers.

from tabtab.js.

gijsroge avatar gijsroge commented on September 1, 2024

@Sim3k86 Try initiating tabtab on window.load.

from tabtab.js.

Sim3k86 avatar Sim3k86 commented on September 1, 2024

@gijsroge sorry for late answer.

I was initiating tabtab on load event from the beggining.
Below script (except last 2 lines - yesterday's "Messa1 Quick & Dirty fix" which works) was placed before </body>

jQuery(window).load(function() {
    jQuery(".produkty").tabtab({
        startSlide: 1,
        animateHeight: true,
        fixedHeight: false,
        scale: 1,
        rotateX: 0,
        speed: 500,
        transformOrigin: "center right",
        rotateY: -90,
        easing: "easeInOutCubic",
        translateX: 0,
        tabMenu: ".menu-produkty",
        tabContent: ".zawartosc-produkty"
    })
var height = jQuery( ".zawartosc-produkt.active" ).outerHeight();
jQuery( ".js-tabs-height" ).height(height);
});

Like I wrote in my last message.. I can give you temporary access to website, on which you can debug that error.

screenshot-kari sim3k86 linuxpl eu 2016-07-19 11-34-47

from tabtab.js.

ctiki avatar ctiki commented on September 1, 2024

Have you solved this problem?

from tabtab.js.

Sim3k86 avatar Sim3k86 commented on September 1, 2024

I've left it with above modified script, you can check how it works on http://kari.sim3k86.linuxpl.eu/oferta/

from tabtab.js.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.