Code Monkey home page Code Monkey logo

Comments (4)

djhoese avatar djhoese commented on June 7, 2024

Doesn't row_span and col_span passed to the add_view method perform this same type of behavior?

Unfortunately there isn't anyone in the current maintainer group that understands kiwisolver or how this stuff works. Additionally, you'll have trouble (like you are already) hacking the solver as I believe any time widgets are updated the constraints may be reset. On top of that, even if you get the solver to be what you want doing canvas.update() may not be enough to force the widgets to use the new geometry constraint results. That's just a guess though.

from vispy.

marcel-goldschen-ohm avatar marcel-goldschen-ohm commented on June 7, 2024

In this simple case col_span might work, but it won't for my use case involving a less simple grid with some fixed width/height elements.

That's truly unfortunate. It would be really useful to be able to supply user constraints to the layout.

from vispy.

djhoese avatar djhoese commented on June 7, 2024

There's always a chance that it will work in some way, but I'm not sure there is anyone here that can help so it may come down to printing out the current solver state yourself. There may be other methods on the ViewBox that would trigger/force an update or you could maybe tell the Canvas to "resize" to the same size and that might trigger the updates properly. Off the top of my head though I'm having trouble coming up with an easy solution.

from vispy.

marcel-goldschen-ohm avatar marcel-goldschen-ohm commented on June 7, 2024

Thanks @djhoese . If I find the bandwidth to dig into this, those are some good suggestions.

from vispy.

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.