Skip to content

Commit 55d4b9e

Browse files
committed
Fix error with status line creation after hierarchy update
1 parent 15127a9 commit 55d4b9e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
7. Reuse statistic from histogram itself, when no axis selection done
1212
8. Support log/lin z scale for color drawing
1313
9. Implement interactive z-scale selection on TPaletteAxis
14+
10. Allow to redraw item with other draw options (before one should clear drawings)
15+
11. Several improvements in THttpServer user interface - repair hierarchy reload,
16+
hide unsupported context menu entries, status line update
1417

1518

1619
## Changes in 3.4

scripts/JSRootPainter.jquery.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,9 @@
301301

302302
if ((status_item!=null) && (JSROOT.GetUrlOption('nostatus')==null)) {
303303
var func = JSROOT.findFunction(status_item._status);
304-
var hdiv = func==null ? null : JSROOT.Painter.ConfigureHSeparator(30);
305-
if (hdiv != null) {
306-
// painter.CreateStatus(28);
304+
var hdiv = (typeof func == 'function') ? JSROOT.Painter.ConfigureHSeparator(30) : null;
305+
if (hdiv != null)
307306
func(hdiv, this.itemFullName(status_item));
308-
}
309307
}
310308

311309
JSROOT.CallBack(callback);
@@ -937,7 +935,7 @@
937935
JSROOT.Painter.ConfigureHSeparator = function(height, onlyleft) {
938936

939937
if ((JSROOT.Painter.separ == null) ||
940-
(JSROOT.Painter.horizontal != null)) return null;
938+
(JSROOT.Painter.separ.horizontal != null)) return null;
941939

942940
JSROOT.Painter.separ['horizontal'] = 'horizontal-separator-div';
943941
JSROOT.Painter.separ['bottom'] = 'bottom-div';

0 commit comments

Comments
 (0)