Browse Source

Fixed #148: option `autoResize` not working on IE in case of changing visibility of the Timeline container element

v3_develop
jos 9 years ago
parent
commit
dc1e13105a
5 changed files with 8659 additions and 8651 deletions
  1. +2
    -0
      HISTORY.md
  2. +8642
    -8639
      dist/vis.js
  3. +1
    -1
      dist/vis.map
  4. +7
    -7
      dist/vis.min.js
  5. +7
    -4
      lib/timeline/Core.js

+ 2
- 0
HISTORY.md View File

@ -20,6 +20,8 @@ http://visjs.org
- Fixed `className` of groups not being updated when changed.
- Fixed the `id` field of a new item not correctly generated.
- Fixed newly added item ignored when returning an other object instance.
- Fixed option `autoResize` not working on IE in case of changing visibility
of the Timeline container element.
## 2014-08-29, version 3.3.0

+ 8642
- 8639
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 7
- 7
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 7
- 4
lib/timeline/Core.js View File

@ -684,10 +684,13 @@ Core.prototype._startAutoResize = function () {
if (me.dom.root) {
// check whether the frame is resized
if ((me.dom.root.clientWidth != me.props.lastWidth) ||
(me.dom.root.clientHeight != me.props.lastHeight)) {
me.props.lastWidth = me.dom.root.clientWidth;
me.props.lastHeight = me.dom.root.clientHeight;
// Note: we compare offsetWidth here, not clientWidth. For some reason,
// IE does not restore the clientWidth from 0 to the actual width after
// changing the timeline's container display style from none to visible
if ((me.dom.root.offsetWidth != me.props.lastWidth) ||
(me.dom.root.offsetHeight != me.props.lastHeight)) {
me.props.lastWidth = me.dom.root.offsetWidth;
me.props.lastHeight = me.dom.root.offsetHeight;
me.emit('change');
}

Loading…
Cancel
Save