there is no css style property "offset". The code you'll have to write is to show the tip, measure the tip element, measure the element you are positioning next to, decide whether it should be above or below it (or whatever) and then alter the top (and perhaps the left) style accordingly. It's not a trivial amount of code (I'm not going to write it for you) but it's not that much either.
On Sat, Mar 13, 2010 at 6:42 AM, hamburger <[email protected]> wrote: > thx Aaron, > but sorry i'am to stupid. > i tried this: > > onShow: function(tip,el) { > tip.setStyle('offset', {'x': 0,'y': 0}); > tip.fade('in'); > //offset: {'x': 40,'y': -110} > }, > > but thats not the way it is ... > > On 12 Mrz., 17:51, Aaron Newton <[email protected]> wrote: > > The onShow and onHide methods are there for you to overload whatever > > functionality you want. You'll have to do some measurements of your own > to > > manage that, but you can put as much logic in there as you need. > > > > > > > > On Fri, Mar 12, 2010 at 1:49 AM, hamburger <[email protected]> wrote: > > > Hello, is there a possibility to change the offset in dependency of > > > the hight of the tip element? > > > > > var Hint = new Tips($$('.poptip'), { > > > offset: { > > > 'x': 40, //I would like to adjust this in dependency of > > > the width or hight of the tip element > > > 'y': -110 //maybe this.getHight()-100 > > > } > > > onShow: function(tip,el) { > > > tip.fade('in'); > > > }, > > > onHide: function(tip,el) { > > > tip.fade('out'); > > > } > > > });- Zitierten Text ausblenden - > > > > - Zitierten Text anzeigen - >
