Giter Club home page Giter Club logo

Comments (4)

shilpstar avatar shilpstar commented on July 23, 2024

i also have this problem when the page is first loaded. But when i reload it it works fine. But that is not how it should be. Not sure if i have done something wrong?

from readmore.js.

vdsabev avatar vdsabev commented on July 23, 2024

We have a similar problem in our application. Sometimes expanding "Read more" in a container with a smaller height can cause it to overflow and produce a scrollbar. The now reduced width of the container can in turn cause the text to resize. The plugin however does not account for that and a part of the text stays hidden, as can be seen on OP's screenshot.

It can also sometimes happen with applications that use lazy loading of data - when the plugin is initially loaded, the parent container doesn't have a scrollbar. However, when the data (e.g. comments) is later loaded and the container overflows, the plugin still uses the old width of the container, not accounting for the scrollbar. This can sometimes be demonstrated on this page, depending on the racing condition caused by lazy loading: http://scadattle.com/events/516cab3a3c5447400b000009

from readmore.js.

jedfoster avatar jedfoster commented on July 23, 2024

@bricealef I suspect that images for your social media links are throwing off Readmore's calculations; its calculating the height of that section before the images have loaded. I believe that this issue and #51 have similar root causes. I'm working on a 2.0 version that will call init() inside a window load event callback, which should solve these issues.

@vdsabev I took a look at your link, and I'm not seeing the issue you describe, were you able to find a solution?

from readmore.js.

vdsabev avatar vdsabev commented on July 23, 2024

@jedfoster we worked around the issue by adding some extra padding to the bottom of the expanded section. Now that I think about it, it makes sense that the social media buttons at the bottom were the culprit. Hopefully your fix will solve the problem permanently, I'll let you know if there are any further issues. Thanks!

from readmore.js.

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.