position problem with drag

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

position problem with drag

Schwenni
i installed shadowbox plugin 0.4 for wordpress and got an problem
when i drag the pic, it moves 5px to the right and at the left side stays a black margin
how can i slove this problem? or what is the problem

here are two links with pics where you can see it
it is in firefox and ie6

http://wow.nrp.de/wordpress/?p=25
http://wow.nrp.de/wordpress/?page_id=38

can anyone help me?

greetings from germany
Reply | Threaded
Open this post in threaded view
|

Re: position problem with drag

Wizzud
That would be because of a bug in Shadowbox 'drag', whereby the current_width (as provided by getDimensions()) of shadowbox_body has borders and margins included whereas the drag layer doesn't. Therefore, when calculating drag.x (in positionDrag()) the 'current_width - optimal_width' also needs to have the shadowbox_body's left/right border widths and margins subtracted.
Combine literacy with curiosity and a whole world of information opens up to you