Giter Club home page Giter Club logo

Comments (4)

CJDennis avatar CJDennis commented on September 25, 2024

I just discovered by fiddling with IE Developer Tools that setting position: relative; on the parent element of the PIE-d element fixes the issue. Standard IE craziness! That trick seems to fix 99% of IE CSS issues! I'll see if I can write a minimal demo with the bug.

from pie.

CJDennis avatar CJDennis commented on September 25, 2024

This is the minimal code:

<!DOCTYPE html>
<html>
  <head>
    <title>PIE test</title>
    <style type="text/css">
      div.scroller {
        position: absolute;
        top: 0px;
        bottom: 0px;
        left: 0px;
        width: 100%;
        overflow-y: auto;
      }

      .pie {
        position: relative;
        border: 1px solid #000080;
        border-radius: 30px;
        padding: 10px 16px;
        margin: 8px 20px;
        -pie-background: linear-gradient(#EDF, #DBE);
        behavior: url("pie/PIE.htc");
      }

      .half-page {
        height: 50%;
      }

      .fix-pie {
        /*position: relative;*/
      }
    </style>
  </head>
  <body>
    <div class="scroller">
      <div class="half-page"></div>
      <div class="fix-pie">
        <p class="pie">Test</p>
        <p class="pie">Test</p>
        <p class="pie">Test</p>
        <p class="pie">Test</p>
      </div>
      <div class="half-page"></div>
    </div>
  </body>
</html>

If you uncomment position: relative; on .fix-pie scrolling works as expected. In fact, having any ancestor with position: relative; will fix this scrolling issue.

from pie.

lojjic avatar lojjic commented on September 25, 2024

This sounds a lot like issue #88.

from pie.

CJDennis avatar CJDennis commented on September 25, 2024

Quite possibly. In issue #88 what happens after page load if you scroll it back to the top? Is the container correctly positioned then? If not it's a different issue or a different manifestation of the same issue.

from pie.

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.