Coder Social home page Coder Social logo

Comments (11)

jssor avatar jssor commented on August 15, 2024

What's the browser and os version?

from slider.

wooama avatar wooama commented on August 15, 2024

Windows 7 - Chrome Version 35.0.1916.153 m
In IE, Safari and Firefox everything's ok.

from slider.

jssor avatar jssor commented on August 15, 2024

I have just updated chrome to 35.0.1916.153 m.
No such problem at my side.

Btw, what's your screen size? And what size of chrome when this happen?

from slider.

wooama avatar wooama commented on August 15, 2024

Screen size: 1366 x 768.
The original width of the slider is 1300px, from which it scales down or up.
Strangely enough, it starts hiding the right arrow when window.width >= 1340px;

from slider.

jssor avatar jssor commented on August 15, 2024

My screen is maximum 1280x768

Please go through following steps to have a test.

open the web page in chrome, right click on the slider, click 'inspect element' menu item in the context menu, and then find the following 3 elements, and then dynamically change 'overflow' of all the 3 elements to 'visible'. close the inspector and check if the problem is still there.

<div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 1263px; height: 566.4069230769231px; overflow: hidden;">
    <!-- Loading Screen -->
    <div style="position: absolute; top: 0px; left: 0px; width: 1300px; height: 583px; -webkit-transform-origin: 0px 0px; -webkit-transform: scale(0.9715384615384616);">
        <div style="position: relative; top: 0px; left: 0px; width: 1300px; height: 583px; overflow: visible;">

from slider.

wooama avatar wooama commented on August 15, 2024

I did all that, but the problem is still there and the right arrow is showing up only during the transition, then it hides away :

no_arrow

from slider.

wooama avatar wooama commented on August 15, 2024

I made some tests in Chrome, adjusting in the inspector the "right" style attribute of the right arrow. Maybe it helps:

test_cases_arrow

from slider.

jssor avatar jssor commented on August 15, 2024

Thanks!
I got the problem. It is known as 'chrome scale and overflow problem'.
reference http://stackoverflow.com/questions/16687023/bug-with-transform-scale-and-overflow-hidden-in-chrome

I am going to fix it.

from slider.

wooama avatar wooama commented on August 15, 2024

Wow. You're the best! Thanks!

from slider.

jssor avatar jssor commented on August 15, 2024

There are 2 ways to fix this,

a. disable hardware acceleration for child sliders

    var nestedSliderOptions = {
            $HWA: false,
            ...
        }
    };

b. add '-webkit-transform: perspective(2000px)' to arrows,

    <span class="jssora05l" style="left: 0px; top: 252px; width: 38px; height: 78px; z-index: 1; -webkit-transform: perspective(2000px);" u="arrowleft"></span>
    <span class="jssora05r" style="top: 252px; width: 38px; height: 78px; right: 0px; z-index: 1; -webkit-transform: perspective(2000px);" u="arrowright"></span>

from slider.

ram-you avatar ram-you commented on August 15, 2024

Hi,
Neither 'a.' nor 'b.' have solved the problem but my solution did:

var svg_docs = document.getElementsByTagName("svg")
for (var i = 0; i < svg_docs.length; i++)
{ svg_docs[i].parentElement.innerHTML += ''; }

from slider.

Related Issues (20)

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.