GithubHelp home page GithubHelp logo

Comments (7)

sgratzl avatar sgratzl commented on June 16, 2024

those are tiny scrollbars. We don't know yet why on some systems and configurations they appear and in others they won't. However, increasing the height of an individual row usually fixed the problem.

can you try to run something like:

lineup(shared_iris, options=list(rowHeight=20))

from lineup_htmlwidget.

nevrome avatar nevrome commented on June 16, 2024

Thanks for the fast reply. Unfortunately rowHeight doesn't seem to do anything. I can't see any effect of this option.

The arrows do not appear if I use lineupjs::lineup independently. The problem seems to be limited to the context of my shiny app. There I have some custom CSS to make some parts of the lineup table transparent.

.lu-row {
  background-color: rgba(0,0,0,0.0) !important;
}
.lu-header {
  background-color: rgba(0,0,0,0.0) !important;
}
.lu-handle {
  background-color: rgba(0,0,0,0.0) !important;
}

But I guess that's not the problem.

from lineup_htmlwidget.

nevrome avatar nevrome commented on June 16, 2024

I was able to set the row height manually in my CSS:

.lu-row {
  background-color: rgba(0,0,0,0.0) !important;
  height: 20px !important;
}

That worked and solved the scrollbar problem. Thanks for your help!

from lineup_htmlwidget.

sgratzl avatar sgratzl commented on June 16, 2024

.lu-row { background-color: rgba(0,0,0,0.0) !important; height: 20px !important; }

please avoid setting the height manually. LineUp needs to know what the row height is since it optimized the rendering to show only the visible rows. With this approach you might end up with scrolling articfacts. You can try to set overflow: hidden !important instead;

from lineup_htmlwidget.

nevrome avatar nevrome commented on June 16, 2024

Hm... I understand. overflow: hidden !important doesn't work for me.

Do you have an idea why the rowHeight option has no effect? In the R help ?lineup this option is not explicitly documented. Maybe it's not implemented yet on the R site?

from lineup_htmlwidget.

sgratzl avatar sgratzl commented on June 16, 2024

there was a bug when merging the default options with the given options. Fixed with 39a9acb. Moreover, I updated to lineupjs 3.1.5

lineup(iris, options=list(rowHeight=40))

results now in

image

from lineup_htmlwidget.

nevrome avatar nevrome commented on June 16, 2024

Excellent! Thank you very much!

from lineup_htmlwidget.

Related Issues (14)

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.