Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Tool tips alignment

When using the ToolTip function, by default, the script aligns to the left.

I'd like to centre the script in a box that has a bit of wriggle room either side. What's the best method for this?

I found when fiddling with the dimensions, particularly the width, the tool tip would fit nicely when using Explorer but in Chrome I may need to increase the width slightly.

Appreciate your assistance.
asked Jun 29, 2016 by Paul Moon Platinum (98,670 points)

1 Answer

+1 vote
Hey Paul,

Please go in graphics >> system >> ssi_javascript9_0_1.js

There find text "tooltip". Here you can locate code "intXpos" and "intYpos" which manages the position of tool tip.

For further alignment, you can use below style:

  border:2px solid rgb(178, 27, 240);
   width: 200px;
  height: inherit;
  background-color: #FFFFFF;
  padding: 10px;
  text-align: left;

answered Jun 29, 2016 by Saurabh Aggarwal Gold (34,795 points)
Thanks mate.

The slice of information I was seeking was ...

  text-align: center;

Thanks for pointing me in the right direction.