projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
724264e
)
Roo/calendar/View.js
author
Edward
<edward@roojs.com>
Wed, 9 Apr 2014 12:12:32 +0000
(20:12 +0800)
committer
Edward
<edward@roojs.com>
Wed, 9 Apr 2014 12:12:32 +0000
(20:12 +0800)
Roo/calendar/View.js
patch
|
blob
|
history
diff --git
a/Roo/calendar/View.js
b/Roo/calendar/View.js
index
3e11e94
..
18e3f50
100644
(file)
--- a/
Roo/calendar/View.js
+++ b/
Roo/calendar/View.js
@@
-714,7
+714,12
@@
Roo.extend(Roo.calendar.View, Roo.BoxComponent, {
// var ctr = this.el.select('.fc-event-container',true).first();
var cg = startCell.createChild(cfg);
-// cg.setStyle('padding-top', ev.row * 20 + 'px');
+ var firstEvent = cg.child('>fc-event').first() || false;
+
+ if(firstEvent){
+ firstEvent.setStyle('padding-top', ev.row * 20 + 'px');
+ }
+
cg.on('mouseenter' ,this.onEventEnter, this, ev);
cg.on('mouseleave' ,this.onEventLeave, this, ev);