Giter Club home page Giter Club logo

Comments (7)

BeppiMenozzi avatar BeppiMenozzi commented on August 15, 2024

I'll check it as soon as possible, thank you :)

from tristatetogglebutton.

SillyV avatar SillyV commented on August 15, 2024

btw, your library is great and it was exactly what I was looking for, thanks for making it public. let me know if you want the xml or the source code in case you can't reproduce the issue.

I actually worked around this with a hacky solution that used the global layout listener to manualy fix this.

sadly I'm not savvy enough in all those things to branch and fix and stuff like that

from tristatetogglebutton.

BeppiMenozzi avatar BeppiMenozzi commented on August 15, 2024

It should be corrected... man what a stupid error :) Declared a variable and never defined it :(
I close the issue, but I'd be greateful if you could test it. Just change version from 1.1.2 to 1.1.3
If your app is on the market, and if you can do it, would you let me know which one it is? :)

from tristatetogglebutton.

SillyV avatar SillyV commented on August 15, 2024

The app is not on the market yet (I'll leave a comment if i'll decide to publish it) it's just a small app I'm doing mostly for personal use.
here is the repository if you're curious.. tho I need to commit some updates to it.
https://github.com/SillyV/CounterLists

about the issue. I think it is mostly resolved. but I think it is slightly offset to the end side,

instead of this line: spotMidX = (startX + endX) / 2 + borderWidth;
I would do the following:

spotMidX = (startX + endX) / 2;
or maybe even spotMidX = (startX + endX) / 2 - borderWidth;

here is what it is like now:

image

the top switch I played with the visibility, and the bottom switch I didn't.

cheers.

from tristatetogglebutton.

BeppiMenozzi avatar BeppiMenozzi commented on August 15, 2024

I guess you are right, borderWidth shouldn't appear in the calculation, because it's the margin.

from tristatetogglebutton.

BeppiMenozzi avatar BeppiMenozzi commented on August 15, 2024

Anyway I should rewrite this lib when I can. It was the first I made and was a modification on others' libs, so it's a little bit messy. :/

from tristatetogglebutton.

SillyV avatar SillyV commented on August 15, 2024

awesome this worked great thanks!

from tristatetogglebutton.

Related Issues (7)

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.