File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 4
4
1 . Fix - prevent exception when discover HTML element position (#121 )
5
5
2 . Fix - prevent I/O failure when server automatically gzip response (#119 )
6
6
3 . Fix - lego drawing for stacked TH1 histograms
7
+ 4 . Fix - when change global tooltips settings, also change for each sub-pad
7
8
8
9
9
10
## Changes in 5.0.2
Original file line number Diff line number Diff line change 1972
1972
// Iterate over all known painters
1973
1973
1974
1974
// special case of the painter set as pointer of first child of main element
1975
- var painter = this . AccessTopPainter ( ) ; ;
1975
+ var painter = this . AccessTopPainter ( ) ;
1976
1976
if ( painter ) return userfunc ( painter ) ;
1977
1977
1978
1978
// iterate over all painters from pad list
4270
4270
else
4271
4271
menu . add ( "header: Canvas" ) ;
4272
4272
4273
- if ( this . iscan )
4274
- menu . addchk ( ( JSROOT . gStyle . Tooltip > 0 ) , "Show tooltips" , function ( ) {
4273
+ if ( this . iscan || ! this . has_canvas )
4274
+ menu . addchk ( ( JSROOT . gStyle . Tooltip > 0 ) , "Enable tooltips (global) " , function ( ) {
4275
4275
JSROOT . gStyle . Tooltip = ( JSROOT . gStyle . Tooltip === 0 ) ? 1 : - JSROOT . gStyle . Tooltip ;
4276
+ this . ForEachPainterInPad ( function ( fp ) {
4277
+ if ( fp . tooltip_allowed !== undefined ) fp . tooltip_allowed = ( JSROOT . gStyle . Tooltip > 0 ) ;
4278
+ } ) ;
4276
4279
} ) ;
4277
4280
4278
4281
if ( ! this . _websocket ) {
You can’t perform that action at this time.
0 commit comments