Giter Club home page Giter Club logo

Comments (7)

github-actions avatar github-actions commented on May 25, 2024

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

from textual.

TomJGooding avatar TomJGooding commented on May 25, 2024

I'm not sure if this is a side effect of not having the widget displayed (no space is calculated for it so it doesn't know what sizes to use when writing the Table?) or not. If this is working as expected, might there be any way to write to the widget while it's hidden but preserve the appropriate sizing?

I think you're right about Rich.Table not knowing how to calculate the column width.

Perhaps you could set table.width = log2.scrollable_content_region.width as a workaround?

from textual.

geoff-va avatar geoff-va commented on May 25, 2024

Gave it a whirl but unfortunately that doesn't seem to be working either. Looks to be writing empty lines in that case when it's not displayed. The width reported while it's hidden is 0.

image

from textual.

github-actions avatar github-actions commented on May 25, 2024

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

from textual.

geoff-va avatar geoff-va commented on May 25, 2024

Just tried my example out with the latest textual (0.52.1) but unfortunately I appear to be getting the same results as before.

image

from textual.

willmcgugan avatar willmcgugan commented on May 25, 2024

The fix is in main. It will be in next week's release.

from textual.

geoff-va avatar geoff-va commented on May 25, 2024

Ah - thanks for pointing that out. I should have checked instead of assumed :)

from textual.

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.