Code Monkey home page Code Monkey logo

Comments (2)

btbest avatar btbest commented on September 28, 2024

The commit that introduced the 100000 max doesn't mention any reason. I'm guessing this was just a good-enough value chosen to avoid having to implement logic coupling one spinner's limit to the other spinner's value (or any logic, for that matter...)

Choosing a min > max doesn't actually seem to cause any problems (besides obviously leading to nothing passing the filter), so we could just remove the max on the spinner altogether...

Looks like it's only a GUI limit btw, so one could still choose any value by manually tweaking the .ilp 😁

from ilastik.

btbest avatar btbest commented on September 28, 2024

I think I found out why the numbers were chosen... I tried removing the maximum altogether:

image

Now Qt doesn't allow values above 99 🙃 It's also clear that the maximum controls the width of the spinner input 🤦 This is the result with maxima approaching the highest numbers an int can hold:

image

So the two numbers were probably chosen to get a suggestive width for the box (smaller box for the size filter Min).

This ends up getting quite wide for an applet that already gets a horizontal scroll bar with the default drawer width. So I think I would go with vertical positioning for these two instead:

image

from ilastik.

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.