Skip to content

希望能实现tg_min功能,让视图宽度等于多个视图宽度的最小值,谢谢 #37

Description

@changelee82

我实现这样一个功能:相对布局下,子视图宽度==子视图高度==min(父视图高度,父视图宽度)
可以对数组扩展出一个tg_min的方法,view.tg_width.equal([a.tg_width, b.tg_height, c.tg_width].tg_min),这样的结果就是view的宽度等于a.tg_width, b.tg_height, c.tg_width中的最小值。
非常感谢!!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions