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

Fix radioelement scrolling #737

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
radioelement - scroll to preselected element only after the view did …
…appear
  • Loading branch information
matan23 committed Nov 3, 2015
commit 1558f1835b5a860b07dff133467281767d7ec80b
6 changes: 3 additions & 3 deletions quickdialog/QuickDialogController.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ - (void)viewWillAppear:(BOOL)animated {
if (_root!=nil) {
self.title = _root.title;
self.navigationItem.title = _root.title;
if (_root.preselectedElementIndex !=nil)
[self.quickDialogTableView scrollToRowAtIndexPath:_root.preselectedElementIndex atScrollPosition:UITableViewScrollPositionTop animated:NO];

}
}

- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];

if (_root!=nil && _root.preselectedElementIndex !=nil) {
[self.quickDialogTableView scrollToRowAtIndexPath:_root.preselectedElementIndex atScrollPosition:UITableViewScrollPositionTop animated:NO];
}
if (_root.showKeyboardOnAppear) {
QEntryElement *elementToFocus = [_root findElementToFocusOnAfter:nil];
if (elementToFocus!=nil) {
Expand Down