Skip to content

Commit afb1333

Browse files
committed
Fix - set flex frame title via text
Avoid usage of generic string in the html() expression
1 parent 97ac11f commit afb1333

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/gui/display.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,10 +933,12 @@ class FlexibleDisplay extends MDIDisplay {
933933
main = top.append('div');
934934

935935
main.html('<div class=\'jsroot_flex_header\' style=\'height: 23px; overflow: hidden; background-color: lightblue\'>' +
936-
`<p style='margin: 1px; float: left; font-size: 14px; padding-left: 5px'>${title}</p></div>`+
937-
`<div id='${this.frameid}_cont${this.cnt}' class='jsroot_flex_draw' style='overflow: hidden; width: 100%; height: calc(100% - 24px); background: white'></div>`+
936+
'<p style=\'margin: 1px; float: left; font-size: 14px; padding-left: 5px\'></p></div>' +
937+
`<div id='${this.frameid}_cont${this.cnt}' class='jsroot_flex_draw' style='overflow: hidden; width: 100%; height: calc(100% - 24px); background: white'></div>` +
938938
'<div class=\'jsroot_flex_resize\' style=\'position: absolute; right: 3px; bottom: 1px; overflow: hidden; cursor: nwse-resize\'>&#x25FF;</div>');
939939

940+
main.select('.jsroot_flex_header p').text(title);
941+
940942
main.attr('class', 'jsroot_flex_frame')
941943
.style('position', 'absolute')
942944
.style('left', Math.round(w * (this.cnt % 5)/10) + 'px')

0 commit comments

Comments
 (0)