enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Manual set width/height of the tooltip #133

Closed movedoa closed 2 years ago

movedoa commented 8 years ago

Hello, Is there a way to set the width and height of the tooltip manually?

Currently my code looks like this:

this.CreateToolTip = function(
      cLink,
      cWidgetId,
      iWidth,
      iHeight
    ){
       var ToolTip = new Opentip(document.getElementById(cWidgetId),
          {
              ajax: cLink,
              showOn: 'mouseover',
              target: true,
              tipJoint: "left",
              group: "AddInfToolTip",
              removeElementsOnHide: true,
              hideTriggers: ['trigger','tip'],
              hideOn: 'mouseout',
              borderColor: '#FF0000'
         }
      );

      // TODO: Set Width / Height

      ToolTip.show();
    };