View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003621 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2012-02-21 18:13 | 2012-12-07 13:59 |
Reporter | tjungcl | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | 4.5.7 revision 41909 | ||||
Summary | 0003621: oxajax.js: position, width and height of element wrong | ||||
Description | in oxajax.js there a part where you set the position, width and height of the fading layer: $('div', overlayKeeper).css({ 'position' : 'absolute', 'left' : $(this).offset().left-10, 'top' : $(this).offset().top-10, 'width' : $(this).width()+20, 'height' : $(this).height()+20 }); The absolute pixels -10 and +20 are wrong. I dont know, what they do there, but i guess this is for paddings in a special case. However, with innerWidth() and innerHeight() you get the correct values including padding and dont have to add absolute pixels: $('div', overlayKeeper).css({ 'position' : 'absolute', 'left' : $(this).offset().left, 'top' : $(this).offset().top, 'width' : $(this).innerWidth(), 'height' : $(this).innerHeight() }); | ||||
Tags | AJAX | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||