I have filed a pull request for this issue:
https://github.com/mootools/mootools-more/pull/1019

Will basically allow you to supply functions instead of values for the
offset property.

You can add your support to it if you wish :)

I actually think this is a good idea all around - it is done by other
utilities (for example - Highcharts) and allows much more dynamic value
assignments.

On Sat, Sep 3, 2011 at 2:13 PM, Andrea Dessì <[email protected]> wrote:

> oh and of course I'm talking about this line:
>
> https://github.com/mootools/mootools-more/blob/1.3.2.1/Source/Interface/Tips.js#L147
>
> --
> Andrea
>
>
>
>
> On Sat, Sep 3, 2011 at 13:08, Andrea Dessì <[email protected]> wrote:
>
>> Hi,
>>
>> I've tried to do it in a jsfiddle,
>> http://jsfiddle.net/sgF5Q/
>>
>> but... the onShow event is fired just a while before the position is
>> calculated and applyied.
>> so right know I think isnt possible.
>>
>> right? :)
>>
>> --
>> Andrea
>>
>>
>> On Sat, Sep 3, 2011 at 12:47, campari <[email protected]> wrote:
>>
>>> Is it possible to set offset.y according to the heigt of current
>>> tooltip?
>>> I want to position the tooltip above the links. The content varied so
>>> the heigt of the tooltip is different each time.
>>>
>>> var oTips = new Tips($$('.sb_tooltip'), {
>>>        className: 'sb_tooltip',
>>>        fixed: true,
>>>        offset: {'x': -20, 'y': DYNAMIC_OFFSET(?)}
>>> });
>>>
>>> Thanks in advance
>>>
>>>
>>
>


-- 
Arieh Glazer
אריה גלזר
052-5348-561
http://www.arieh.co.il
http://www.link-wd.co.il

Reply via email to