From: Salvatore Iovene Date: Wed, 6 Feb 2013 14:00:58 +0000 (+0200) Subject: (hoofbeats) Uses SimpleScrollable. X-Git-Tag: 0.1~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65f2e783fa65387754e8662238c8eedfef0b8c2d;p=profile%2Fivi%2Fcowhide.git (hoofbeats) Uses SimpleScrollable. --- diff --git a/examples/hoofbeats/index.html b/examples/hoofbeats/index.html index 627ca4c..207f904 100644 --- a/examples/hoofbeats/index.html +++ b/examples/hoofbeats/index.html @@ -33,15 +33,17 @@ -
+
{{outlet library}}
diff --git a/examples/hoofbeats/javascripts/app/views/mediaItemsView.js b/examples/hoofbeats/javascripts/app/views/mediaItemsView.js index 41e9eb1..c751792 100644 --- a/examples/hoofbeats/javascripts/app/views/mediaItemsView.js +++ b/examples/hoofbeats/javascripts/app/views/mediaItemsView.js @@ -2,8 +2,11 @@ (function(app, Ember) { var MediaItemsView = Ember.View.extend({ templateName: 'mediaItems', - tagName: 'ul', - classNames: ['mediaItems item-list striped'] + classNames: ['mediaItems ch-simple-scrollable'], + + didInsertElement: function() { + this.$().ch_simple_scrollable('enable'); + } }); app.MediaItemsView = MediaItemsView; diff --git a/examples/hoofbeats/stylesheets/hoofbeats.css b/examples/hoofbeats/stylesheets/hoofbeats.css index d31485d..a413b08 100644 --- a/examples/hoofbeats/stylesheets/hoofbeats.css +++ b/examples/hoofbeats/stylesheets/hoofbeats.css @@ -1,7 +1,11 @@ .content { padding-top: 40px; + height: 100%; + width: 100%; + position: absolute; + overflow: hidden; } -.content ul, .content ol { - margin-left: 0; +ul.item-list { + margin: 0; }