Skip to content

Commit

Permalink
[add] example of content with scroll, #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkozhukh committed Feb 25, 2015
1 parent 6ca6f8e commit 7c0cab2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion client/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ if (Meteor.isClient){
},
{ header:"Meteor Data Binding", body:{
id:"t2", view:"reactive", template: "allinfo" }
}
},
{ header:"Content with Scroll", body:{
id:"t2", view:"reactive", template: "longinfo" }
},
]
};

Expand Down
9 changes: 9 additions & 0 deletions client/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ <h4>Book info</h4>
<li>Author: {{author}}</li>
{{/each}}
</blockquote>
</template>

<template name="longinfo">
<blockquote>
01<br>02<br>03<br>04<br>05<br>06<br>07<br>08<br>09<br>10<br>
11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>
21<br>22<br>23<br>24<br>25<br>26<br>27<br>28<br>29<br>30<br>
31<br>32<br>33<br>34<br>35<br>36<br>37<br>38<br>39<br>40<br>
</blockquote>
</template>
3 changes: 2 additions & 1 deletion public/webix-meteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ webix.protoUI({
name:"reactive",
$init:function(){
this.$ready.push(this.render);
this.$view.className += " webix_selectable";
this.$view.className += " webix_selectable ";
this.$view.style.overflow = "auto";

This comment has been minimized.

Copy link
@dandv

dandv Apr 27, 2015

Contributor

This is useful and should be applied to the MVC example too.

Even better, the two examples should use one and the same meteor-webix adapter instead of duplicating code.

How about moving both the examples into the webix-meteor-data repo, as it seems you agreed a while ago?

},
render:function(){
this.$view.innerHTML="";
Expand Down

0 comments on commit 7c0cab2

Please sign in to comment.