Skip to content

Commit

Permalink
Merge pull request #6762 from cb1kenobi/timob-18202_4_0_X
Browse files Browse the repository at this point in the history
[TIMOB-18202] Fixed separators in TableViews with TableViewSections.
  • Loading branch information
feons committed Apr 10, 2015
2 parents 8d8df5f + c223e4e commit 63f3bc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mobileweb/titanium/Ti/UI/TableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ define(['Ti/_/declare', 'Ti/_/UI/KineticScrollView', 'Ti/_/style', 'Ti/_/lang',
}));

this.__values__.constants.sections = [];
this.data = [];
},

_handleMouseWheel: function() {
Expand Down Expand Up @@ -192,7 +191,7 @@ define(['Ti/_/declare', 'Ti/_/UI/KineticScrollView', 'Ti/_/style', 'Ti/_/lang',
},

_refreshSections: function() {
for (var i = 0; i < this._sections._children.length; i += 2) {
for (var i = 0; i < this._sections._children.length; i++) {
this._sections._children[i]._refreshRows();
}
this._triggerLayout();
Expand Down
4 changes: 2 additions & 2 deletions mobileweb/titanium/Ti/UI/TableViewSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ define(['Ti/_/declare', 'Ti/_/lang', 'Ti/_/UI/Widget', 'Ti/_/style','Ti/UI/Mobil
},

add: function(value, index) {

var rows = this._rows._children,
rowCount = this.rowCount;
if (!lang.isDef(index)) {

if (index === void 0) {
index = rowCount;
}
if (index < 0 || index > rowCount) {
Expand Down

0 comments on commit 63f3bc8

Please sign in to comment.