I am using a javascript plugin called pop (http://pop.seaofclouds.com/) to have a drop down menu.
It works fine but I want to show long strings so I need the drop down box to be wide rather than long. I would love to be able to make it so that if the box that appears extends the page to the right then the box would stretch to the left.
[ Button ]
[ This is an example of the long string in the box that appears ]
[ Button ]
[ An example of the box extending to the left so it doesn't extend the page ]
So is it possible to detect if the page extends with javascript and then change it so the box drops to the left?
Or am I thinking about this wrong and there is a better way?