@ -95,6 +95,8 @@ function ItemSet(body, options) {
axis : 20
} ,
showTooltips : true ,
tooltip : {
followMouse : false ,
overflowMethod : 'flip'
@ -336,7 +338,7 @@ ItemSet.prototype.setOptions = function(options) {
var fields = [
'type' , 'rtl' , 'align' , 'order' , 'stack' , 'stackSubgroups' , 'selectable' , 'multiselect' , 'itemsAlwaysDraggable' ,
'multiselectPerGroup' , 'groupOrder' , 'dataAttributes' , 'template' , 'groupTemplate' , 'visibleFrameTemplate' ,
'hide' , 'snap' , 'groupOrderSwap' , 'tooltip' , 'tooltipOnItemUpdateTime'
'hide' , 'snap' , 'groupOrderSwap' , 'showTooltips' , ' tooltip' , 'tooltipOnItemUpdateTime'
] ;
util . selectiveExtend ( fields , this . options , options ) ;
@ -1881,7 +1883,7 @@ ItemSet.prototype._onMouseOver = function (event) {
}
var title = item . getTitle ( ) ;
if ( title ) {
if ( this . options . showTooltips && title ) {
if ( this . popup == null ) {
this . popup = new Popup ( this . body . dom . root ,
this . options . tooltip . overflowMethod || 'flip' ) ;
@ -1931,7 +1933,7 @@ ItemSet.prototype._onMouseMove = function (event) {
var item = this . itemFromTarget ( event ) ;
if ( ! item ) return ;
if ( this . options . tooltip . followMouse ) {
if ( this . options . showTooltips && this . options . tooltip . followMouse ) {
if ( this . popup ) {
if ( ! this . popup . hidden ) {
var container = this . body . dom . centerContainer ;