Skip to content

Commit

Permalink
Ensure proper display in clickpick mode with 1 row
Browse files Browse the repository at this point in the history
  • Loading branch information
dioslaska committed Feb 3, 2015
1 parent 6fb772d commit bb2b6e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/mobiscroll.scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@
if (lines > 1) {
s.cssClass = (s.cssClass || '') + ' dw-ml';
}

// Ensure a minimum number of 3 items if clickpick buttons present
if (s.mode != 'scroller') {
s.rows = Math.max(3, s.rows);
}
};

// Properties
Expand Down

0 comments on commit bb2b6e8

Please sign in to comment.