Browse Source

Removed some redundant code

css_transitions
jos 10 years ago
parent
commit
62bc49b1e1
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      src/timeline/component/ItemSet.js

+ 1
- 7
src/timeline/component/ItemSet.js View File

@ -430,14 +430,8 @@ ItemSet.prototype.redraw = function() {
height = Math.max(height, minHeight); height = Math.max(height, minHeight);
this.stackDirty = false; this.stackDirty = false;
// reposition frame
frame.style.left = asSize(options.left, '');
frame.style.right = asSize(options.right, '');
frame.style.top = asSize((orientation == 'top') ? '0' : '');
frame.style.bottom = asSize((orientation == 'top') ? '' : '0');
frame.style.width = asSize(options.width, '100%');
// update frame height
frame.style.height = asSize(height); frame.style.height = asSize(height);
//frame.style.height = asSize('height' in options ? options.height : height); // TODO: reckon with height
// calculate actual size and position // calculate actual size and position
this.props.top = frame.offsetTop; this.props.top = frame.offsetTop;

Loading…
Cancel
Save