Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

LayoutParams.baselineOf(view: View) #213

Merged
merged 2 commits into from
Jun 15, 2016
Merged

LayoutParams.baselineOf(view: View) #213

merged 2 commits into from
Jun 15, 2016

Conversation

abond
Copy link
Contributor

@abond abond commented Jun 15, 2016

issue #212

@yanex
Copy link
Member

yanex commented Jun 15, 2016

All other RelativeLayout helpers are defined twice for View and id.

inline fun LayoutParams.topOf(view: View): Unit = addRule(ABOVE, view.id)
...
inline fun LayoutParams.topOf(id: Int): Unit = addRule(ABOVE, id)

I think it's better to add not only baselineOf(view: View), but also baselineOf(id: Int).

@abond
Copy link
Contributor Author

abond commented Jun 15, 2016

You are right.
Added this one too.

@yanex yanex merged commit b6f6007 into Kotlin:master Jun 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants