rohin
April 11, 2018, 4:56pm
1
Dear all
I have a very trivial question. In the jsROOT example [https://jsroot.gsi.de/latest/?nobrowser&file=../files/hsimple.root&item=ntuple;1&opt=px:py::pz>4 ] the buttons for toggling the log scale and additional functionalities are placed on the bottom left. Is there a way to ask it to be placed at bottom right ?
Cheers
Rohin
linev
April 11, 2018, 7:06pm
2
Hi Rohin,
Not, but this is can be easily implemented.
Actually, in any canvas sub-pad buttons situated in bottom-right corner.
I will try this soon.
Regards,
Sergey
rohin
April 11, 2018, 8:08pm
3
This is exactly what I am looking for. Let me know once you propagate the changes to a release
linev
April 12, 2018, 11:35am
4
Hi,
This is how it looks in “dev” version now:
http://jsroot.gsi.de/dev/?nobrowser&toolbar=right&file=../files/rf107.root&item=rf107_plotstyles;1
One need to add “&toolbar=right” in URL or just specify in JavaScript:
JSROOT.gStyle.ToolBarSide = "right";
Will appear in next JSROOT release - most probably end of June.
Regards,
Sergey
1 Like
rohin
April 23, 2018, 2:04pm
5
Hi Sergey.
The option “&toobar=right” doesn’t seem to have the desired effect. Did something else break the change in the dev branch ?
Cheers
Rohin
linev
April 23, 2018, 9:30pm
6
Hi Rohin,
It has desired effect, but you probably confused by buttons associated with subpads.
These buttons appears in opposite corner to the canvas buttons.
Also one side effect - buttons on right side not hidden by default.
Sergey
linev
April 24, 2018, 4:36pm
7
Now fixed in dev branch - buttons on right side are hidden by default
rohin
April 24, 2018, 11:57pm
8
Hi Sergey.
Lets check this URL
https://root.cern/js/dev/?nobrowser&file=../files/hsimple.root&item=hpx&toolbar=right
One should expect the menu buttons to appear on the right… no ? [notice that I have the appropriate query string]
Cheers
Rohin
linev
April 25, 2018, 6:43am
9
Sorry, we not always update dev versions on http://jsroot.gsi.de and JavaScript ROOT website synchronously.
Now it is there (thanks to @bellenot )
rohin
May 8, 2018, 9:15pm
10
Hi Sergey
May I request another feature ?
Currently the buttons are placed horizontally (parallel to the x-axis), Would it be easy to add another option to place the buttons aligned along the y-axis ? (that is vertically )
Cheers
Rohin
linev
May 9, 2018, 3:08pm
11
Hi Rohin,
I will try to implement this.
Sergey
linev
May 15, 2018, 3:21pm
12
rohin
May 16, 2018, 8:56am
13
Thanks Sergey
Could you please propagate these changes to https://root.cern.ch/js/dev//scripts/JSRootCore
cheers
Rohin
linev
May 16, 2018, 11:52am
14
Now changes also applied on https://root.cern/js/dev/ server
system
Closed
May 30, 2018, 11:52am
15
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.