View Issue Details

IDProjectCategoryView StatusLast Update
0003621OXID eShop (all versions)2. ----- eShop backend (admin) -----public2012-12-07 13:59
Reportertjungcl Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version4.5.7 revision 41909 
Summary0003621: oxajax.js: position, width and height of element wrong
Descriptionin 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()
                        });
TagsAJAX
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

aurimas.gladutis

2012-11-21 13:33

reporter   ~0007930

Hi, thank you for reporting this, but that is not the case. These pixels are added not becouse of padding, but to be 10px to all sides bigger than the parent block. It is used in all cases.