GithubHelp home page GithubHelp logo

Snap button to text about materialui HOT 4 CLOSED

invexgames avatar invexgames commented on May 29, 2024
Snap button to text

from materialui.

Comments (4)

InvexGames avatar InvexGames commented on May 29, 2024

Well, there are times when you want to edit the text without the size of the button changing. That said, that's probably not really much of the time, so maybe I could make it automatic but give it a toggle.

from materialui.

InvexGames avatar InvexGames commented on May 29, 2024

You're gonna love what I've done with the SnapButtonToText component!

It's now much more efficient - it works out all the dimensions from one ContentSizeFitter on the Text, instead of making lots of temporary ContentSizeFitters and LayoutGroups.

It also works automatically, but only when the RectTransform size on the text has changed since the last frame. Works beautifully in both play and edit modes :D

from materialui.

nah0y avatar nah0y commented on May 29, 2024

Yay :)
Congrats!

from materialui.

nah0y avatar nah0y commented on May 29, 2024

This is just perfect :)
Way much better to use.

from materialui.

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.