Skip to content

Commit

Permalink
Some more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Sep 28, 2023
1 parent bf46587 commit bf463b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion modules/gpad/RAxisPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ class RAxisPainter extends RObjectPainter {
else
this.titlePos = 'right';


this.changeAxisAttr(0, 'title_position', this.titlePos, 'title_offset', this.titleOffset / this.scalingSize);

drag_rect.remove();
Expand Down
14 changes: 8 additions & 6 deletions modules/gui/HierarchyPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1219,15 +1219,17 @@ class HierarchyPainter extends BasePainter {

if (this.with_icons && !break_list) {
const icon_name = hitem._isopen ? img2 : img1,
d3img = (icon_name.indexOf('img_') === 0)
d3img = (icon_name.indexOf('img_') === 0)
? d3line.append('div')
.attr('class', icon_name)
.attr('title', hitem._kind)
: d3line.append('img')
.attr('src', icon_name)
.attr('alt', '')
.attr('title', hitem._kind)
.style('vertical-align', 'top').style('width', '18px').style('height', '18px');
.style('vertical-align', 'top')
.style('width', '18px')
.style('height', '18px');

if (('_icon_click' in hitem) || (handle && ('icon_click' in handle)))
d3img.on('click', function(evnt) { h.tree_click(evnt, this, 'icon'); });
Expand Down Expand Up @@ -3730,10 +3732,10 @@ ObjectPainter.prototype.showInspector = function(opt, obj) {
return true;

const main = this.selectDom(),
rect = getElementRect(main),
w = Math.round(rect.width * 0.05) + 'px',
h = Math.round(rect.height * 0.05) + 'px',
id = 'root_inspector_' + internals.id_counter++;
rect = getElementRect(main),
w = Math.round(rect.width * 0.05) + 'px',
h = Math.round(rect.height * 0.05) + 'px',
id = 'root_inspector_' + internals.id_counter++;

main.append('div')
.attr('id', id)
Expand Down
3 changes: 2 additions & 1 deletion modules/gui/display.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,8 @@ class BrowserLayout {
if (this.browser_kind === 'float') {
area.style('bottom', '0px')
.style('top', '0px')
.style('width', '').style('height', '')
.style('width', '')
.style('height', '')
.classed('jsroot_float_browser', false)
.style('border', null);
} else if (this.browser_kind === 'fix') {
Expand Down

0 comments on commit bf463b1

Please sign in to comment.