Giter Site home page Giter Site logo

Comments (5)

noyannus avatar noyannus commented on July 21, 2024

Update: this does not happen consistently.

And a question: is the right border of a subcell anchored with an absolute value to the right border of its parent? When narrowing the parent, the distance between borders remains constant, which can lead to very slim child cells.

from treesheets.

aardappel avatar aardappel commented on July 21, 2024

The column width is per grid column. Cell 1 and Cell 2 are in different columns.

The narrowing/widening operates on the current column and all nested columns beneath it. So I am guessing what happened is that it was narrowed with Cell 1 or the parent of Cell 2 selected, then widened while only Cell 2 is selected. The end result is as intended.

If something else is happening, can you give an exact repro (including what cells were selected at time of operation)

from treesheets.

noyannus avatar noyannus commented on July 21, 2024

Ah, so. I had the expectation (ingrained from use of many other apps) that a content would always flow to fill the full available width.

Just for curiosity: what is the benefit of empty areas as in cell 1, second image? A full width auto-reflow would free vertical space and improve overviews, ISTM.

Thank you for the assistance and this useful app!

Closing as resolved.

from treesheets.

aardappel avatar aardappel commented on July 21, 2024

There is no particular advantage.

I guess layout is a single pass algorithm, and the available width is not known at the start. Any cell could make the actual rendered width wider and thus give more visual space to cells before it that have already been layouted.

"column width" is based on characters, but the rendering is based on pixels derived from text width, so can be wildly different esp with unicode chars.

The only way to do what you expect is a two pass algorithm, where thus the pixel text width of everything is computed twice, which is fairly expensive.

from treesheets.

noyannus avatar noyannus commented on July 21, 2024

Ah! Thank you.

from treesheets.

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.