Giter VIP home page Giter VIP logo

Comments (3)

longfangsong avatar longfangsong commented on July 28, 2024

设计上我们不希望把一个Label从中间断开分到两行上(这样看起来不太好看,代码里也比较难处理)。
在加上某个Label后,若行宽超过maxLineWidth,会把这个Label放到下一行。
当然如果单个或一组互相交叠的Label长度已经超过了maxLineWidth,则无法正常分行(此时v1的行为我已经记不清了,v2的行为是仍然渲染出这个超长的行)。

from poplar.

playma avatar playma commented on July 28, 2024

v2 已解決換行問題,但換行後最左邊的 label 有可能會被切掉

from poplar.

longfangsong avatar longfangsong commented on July 28, 2024

@playma
07f079e 添加了padding的自适应,根据最长的label计算padding,保证label不会被切掉。
屏幕快照 2020-02-14 下午9 32 31

from poplar.

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.