Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

odd/even rows are easy to add

  • Loading branch information...
commit 408294bb88424ebc4765f84762f61747ed1e8154 1 parent d5cabff
Ian McKellar authored
View
1  chrome/content/media-page.js
@@ -146,6 +146,7 @@ function MediaGrid_scrollTo(index) {
var item = window.mediaPage.mediaListView.getItemByIndex(index+i);
dump('setting row '+i+' to item: '+item.guid+'\n');
this._rows[i].setMediaItem(item);
+ this._rows[i].element.className = ((index+i)%2)?'odd':'even';
}
}
MediaGrid.prototype._update =
View
2  chrome/content/media-page.xul
@@ -39,7 +39,7 @@
>
<hbox flex="1" style="width:100%">
- <vbox flex="1" style="overflow:hidden;max-height:100%">
+ <vbox flex="1" style="overflow:hidden;max-height:100%" id="mediagrid">
<vbox id="body">
</vbox>
</vbox>
View
4 chrome/skin/media-page.css
@@ -2,3 +2,7 @@
background-color: red;
height: 200px;
}
+
+#mediagrid .odd {
+ background-color: #1a1a1a;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.