Skip to content

Commit

Permalink
Merge pull request #6953 from ashcoding/4_1_X
Browse files Browse the repository at this point in the history
[TIMOB-19140] (4_1_X) Updated dividerHeight property to support a height of zero.
  • Loading branch information
ashcoding committed Jul 3, 2015
2 parents 7514d5e + 2db8030 commit d57aa7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public void processProperties(KrollDict d) {
if (d.containsKey(TiC.PROPERTY_SEPARATOR_HEIGHT)) {
TiDimension dHeight = TiConvert.toTiDimension(d.get(TiC.PROPERTY_SEPARATOR_HEIGHT), -1);
int height = dHeight.getAsPixels(listView);
if (height > 0) {
if (height >= 0) {
dividerHeight = height;
listView.setDividerHeight(height);
}
Expand Down Expand Up @@ -713,7 +713,7 @@ public void propertyChanged(String key, Object oldValue, Object newValue, KrollP
} else if (key.equals(TiC.PROPERTY_SEPARATOR_HEIGHT)) {
TiDimension dHeight = TiConvert.toTiDimension(newValue, -1);
int height = dHeight.getAsPixels(listView);
if (height > 0) {
if (height >= 0) {
dividerHeight = height;
listView.setDividerHeight(height);
}
Expand Down

0 comments on commit d57aa7d

Please sign in to comment.