@@ -371,7 +371,7 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
371
371
function ReactTooltip ( props ) {
372
372
_classCallCheck ( this , ReactTooltip ) ;
373
373
374
- var _this = _possibleConstructorReturn ( this , Object . getPrototypeOf ( ReactTooltip ) . call ( this , props ) ) ;
374
+ var _this = _possibleConstructorReturn ( this , ( ReactTooltip . __proto__ || Object . getPrototypeOf ( ReactTooltip ) ) . call ( this , props ) ) ;
375
375
376
376
_this . state = {
377
377
place : 'top' , // Direction of tooltip
@@ -612,8 +612,7 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
612
612
delayShow : e . currentTarget . getAttribute ( 'data-delay-show' ) || this . props . delayShow || 0 ,
613
613
delayHide : e . currentTarget . getAttribute ( 'data-delay-hide' ) || this . props . delayHide || 0 ,
614
614
border : e . currentTarget . getAttribute ( 'data-border' ) ? e . currentTarget . getAttribute ( 'data-border' ) === 'true' : this . props . border || false ,
615
- extraClass : e . currentTarget . getAttribute ( 'data-class' ) || this . props . class || '' ,
616
- countTransform : e . currentTarget . getAttribute ( 'data-count-transform' ) ? e . currentTarget . getAttribute ( 'data-count-transform' ) === 'true' : this . props . countTransform != null ? this . props . countTransform : true
615
+ extraClass : e . currentTarget . getAttribute ( 'data-class' ) || this . props . class || ''
617
616
} , function ( ) {
618
617
if ( scrollHide ) _this5 . addScrollListener ( e ) ;
619
618
_this5 . updateTooltip ( e ) ;
@@ -745,11 +744,10 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
745
744
var place = _state2 . place ;
746
745
var effect = _state2 . effect ;
747
746
var offset = _state2 . offset ;
748
- var countTransform = _state2 . countTransform ;
749
747
750
748
var node = _reactDom2 . default . findDOMNode ( this ) ;
751
749
752
- var result = ( 0 , _getPosition2 . default ) ( currentEvent , currentTarget , node , place , effect , offset , countTransform ) ;
750
+ var result = ( 0 , _getPosition2 . default ) ( currentEvent , currentTarget , node , place , effect , offset ) ;
753
751
754
752
if ( result . isNewState ) {
755
753
// Switch to reverse placement
@@ -837,7 +835,6 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
837
835
isCapture : _react . PropTypes . bool ,
838
836
globalEventOff : _react . PropTypes . string ,
839
837
getContent : _react . PropTypes . any ,
840
- countTransform : _react . PropTypes . bool ,
841
838
afterShow : _react . PropTypes . func ,
842
839
afterHide : _react . PropTypes . func ,
843
840
disable : _react . PropTypes . bool ,
@@ -894,7 +891,7 @@ Object.defineProperty(exports, "__esModule", {
894
891
value : true
895
892
} ) ;
896
893
897
- exports . default = function ( e , target , node , place , effect , offset , countTransform ) {
894
+ exports . default = function ( e , target , node , place , effect , offset ) {
898
895
var tipWidth = node . clientWidth ;
899
896
var tipHeight = node . clientHeight ;
900
897
@@ -914,10 +911,10 @@ exports.default = function (e, target, node, place, effect, offset, countTransfo
914
911
var windowWidth = window . innerWidth ;
915
912
var windowHeight = window . innerHeight ;
916
913
917
- var _ref = countTransform && getParent ( target , countTransform ) || { parentTop : 0 , parentLeft : 0 } ;
914
+ var _getParent = getParent ( node ) ;
918
915
919
- var parentTop = _ref . parentTop ;
920
- var parentLeft = _ref . parentLeft ;
916
+ var parentTop = _getParent . parentTop ;
917
+ var parentLeft = _getParent . parentLeft ;
921
918
922
919
// Get the edge offset of the tooltip
923
920
0 commit comments