At the moment, the Popup filter allows us to enter 4 different origins for the popup to appear:

  • top-left
  • top-right
  • bottom-left
  • bottom-right

When you choose one of these 4 values it then sets the style for the <div class="popup-positioner">
eg. style="top: -60px; left: 30px;

At the moment, I have the issue where popups on the right-side bar go outside of the screen and cannot be viewed.

I think it would allow a whole new level of flexability to the module to allow the input of top and left directly as part of the popup filter markup.
eg. [popup text='Ut enim ad minim veniam' title='magna' activate=click origin-top=-320px origin-left=-60px]

Or, allow which corner of the popup will have the origin top-left, for example.
eg. [popup text='Ut enim ad minim veniam' title='magna' activate=click origin=top-left popup-corner=bottom-right]
(see attached image for how this example would be displayed)

If I could set my own top and left (or popup-corner=) values I could make it popup to the left handside of the title; making it fully visable for the users.

I also think this functionality will give developers a much more fine-grain control and flexablilty for controlling their popups and would be valuable for this module.

Comments

Scheepers de Bruin’s picture

Hi Andrewsuth

Check out the expand attribute, it controls which direction the popup expands in.

To get the effect in your attached picture, try this:
origin=top-left expand=top-left

andrewsuth’s picture

Status: Active » Closed (fixed)

Thanks again scheepers, you've really thought of everything for this module.

Keep up the good work.

Scheepers de Bruin’s picture

Thanks man, glad you find it useful