Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First selected row visible #32

Closed
wants to merge 9 commits into from
Closed

First selected row visible #32

wants to merge 9 commits into from

Conversation

karlguillotte
Copy link

This change ensures first selected row visibility.

This change ensures first selected row visibility. 
@@ -39,6 +39,7 @@ Ember.Table.RowSelectionMixin = Ember.Mixin.create
rows.objectAt(index).get('content')
else # setter
@_calculateSelectionIndices(value)
@ensureVisible(@get('selectionIndices.0'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @karlguillotte I think this makes sense. Do you think you could change it to @get('selectionIndices.firstObject') instead of @get('selectionIndices.0')?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selectionIndices is actually a Ember.Set where keys are the indices.

Even if the Ember.Set API has firstObject property I tried selectionIndices.firstObject and it does not work.

@ppong
Copy link
Contributor

ppong commented Mar 8, 2013

hey @karlguillotte could you rebase off master so I could merge it in. Thanks

billy-addepar added a commit that referenced this pull request Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants