Giter Site home page Giter Site logo

Comments (6)

leonatherton avatar leonatherton commented on July 18, 2024 1

Hi, I will review this next week and get back to you. Thanks

from idrviewer.

leonatherton avatar leonatherton commented on July 18, 2024

This has been added in the next release. Unfortunately we just missed yesterday's release so it will go live in the next one on Nov 15.

from idrviewer.

nircelero avatar nircelero commented on July 18, 2024

Thanks!

from idrviewer.

nircelero avatar nircelero commented on July 18, 2024

Actually @leonatherton it would be really nice to control both the vertical padding (i.e. padding-top and padding-bottom) as well as the horizontal padding (i.e. padding-left and padding-right). We have two use cases we would like to support:

  1. Having no padding at all.
  2. Having fixed padding together with ZOOM_FITWIDTH, so it looks like a document but stretched to the maximum width.

I know it is a little more effort, but could be really helpful!

from idrviewer.

nircelero avatar nircelero commented on July 18, 2024

@leonatherton you can check out this fork as an example:
https://github.com/Celero-io/idrviewer-fork

from idrviewer.

leonatherton avatar leonatherton commented on July 18, 2024

@nircelero Thank you for providing the example. We've put this feature live in today's release.

We've gone with paddingX and paddingY as the config property names. Note also that the expected value is slightly different. E.g. If you provide paddingX=5, then it will set 5 on the left and 5 on the right for a combined total of 10.

from idrviewer.

Related Issues (3)

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.