From 65f2e783fa65387754e8662238c8eedfef0b8c2d Mon Sep 17 00:00:00 2001 From: Salvatore Iovene Date: Wed, 6 Feb 2013 16:00:58 +0200 Subject: [PATCH] (hoofbeats) Uses SimpleScrollable. --- examples/hoofbeats/index.html | 10 ++++++---- examples/hoofbeats/javascripts/app/views/mediaItemsView.js | 7 +++++-- examples/hoofbeats/stylesheets/hoofbeats.css | 8 ++++++-- 3 files changed, 17 insertions(+), 8 deletions(-) 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; } -- 2.7.4