Scroll columns area to right when children property is changed (#4517)

The feature to pin column could hide the rightmost column, which is
specified with children property of ColumnsArea.

The user is likely to see the column when the property changed, so scroll
the area in such cases.
This commit is contained in:
Akihiko Odaki authored and Eugen Rochko committed 2017-08-04 18:57:46 +02:00
1 parent 400616813e
commit 9d1f8b9d6a
4 files changed
+20 -9

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import detectPassiveEvents from 'detect-passive-events';
import scrollTop from '../scroll';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {