This repository was archived by the owner on Jul 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/timeline/component/item Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ BackgroundItem.prototype.repositionX = RangeItem.prototype.repositionX;
143
143
*/
144
144
BackgroundItem . prototype . repositionY = function ( margin ) {
145
145
var height ;
146
+ var orientation = this . options . orientation . item ;
146
147
147
148
// special positioning for subgroups
148
149
if ( this . data . subgroup !== undefined ) {
@@ -154,7 +155,6 @@ BackgroundItem.prototype.repositionY = function(margin) {
154
155
155
156
this . dom . box . style . height = this . parent . subgroups [ itemSubgroup ] . height + 'px' ;
156
157
157
- var orientation = this . options . orientation . item ;
158
158
if ( orientation == 'top' ) {
159
159
this . dom . box . style . top = this . parent . top + this . parent . subgroups [ itemSubgroup ] . top + 'px' ;
160
160
} else {
@@ -170,8 +170,8 @@ BackgroundItem.prototype.repositionY = function(margin) {
170
170
height = Math . max ( this . parent . height ,
171
171
this . parent . itemSet . body . domProps . center . height ,
172
172
this . parent . itemSet . body . domProps . centerContainer . height ) ;
173
+ this . dom . box . style . bottom = orientation == 'bottom' ? '0' : '' ;
173
174
this . dom . box . style . top = orientation == 'top' ? '0' : '' ;
174
- this . dom . box . style . bottom = orientation == 'top' ? '' : '0' ;
175
175
}
176
176
else {
177
177
height = this . parent . height ;
You can’t perform that action at this time.
0 commit comments