i want to restrict tooltip position to only UNDER link (bottom).

how can i do it?

thank you.

CommentFileSizeAuthor
#6 beauty_tips-positions.png35.38 KBChi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dgastudio’s picture

Status: Active » Closed (works as designed)

sorry,found it.

superdorx’s picture

If you found it, why are you not sharing?

AlexanderPop’s picture

positions: ['most'], // preference of positions for tip (will use first with available space)
// possible values 'top', 'bottom', 'left', 'right' as an array in order of
// preference. Last value will be used if others don't have enough space.
// or use 'most' to use the area with the most space

Anonymous’s picture

So, isn't this the answer to your initial question - You cannot dictate an absolute positioning. Beauty Tips will only use your instructions as a suggestion, not a true directive?

RgnYLDZ’s picture

A hardcode solution would be to modify the beautytips.module file.

After line 190 you can find the styles for the predefined tips. just change the

'positions' => array('right', 'left'),

to

'positions' => array('top'),

or if it does not have it just add it yourself ;)

Know that hardcode is a bad bad bad solution, you have to rethink all the changes when update.

Chi’s picture

Issue summary: View changes
FileSize
35.38 KB

This settings worked for me Beauty tips position settings.

RgnYLDZ’s picture

Chi, where exactly is this setting ?

Chi’s picture

@RgnYLDZ admin/config/user-interface/beautytips/custom-tips/add