View Issue Details

IDProjectCategoryView StatusLast Update
0003202OXID eShop (all versions)3.1. Design, GUI, UXpublic2011-08-31 09:24
Reporteraggrosoft Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version4.5.1 revision 38045 
Summary0003202: oxEqualizer does not take paddings into account
DescriptionFile out/azure/src/js/widgets/oxequalizer.js
Function equalHeight

The function does a good job as long as the group being sent in has no padding, otherwise the height calculation breaks. The problem is that the function assumes that equalizing the "height" property automatically makes the items same height on screen - this won't work if any paddings are active. The fix is quite easy:

if (target) {
       if (group.height() < target.height()){
              //Instead of just using target.height() we subtract the paddings before using innerHeight() - height()
              var h = target.height() - (group.innerHeight() - group.height());
              group.css("height", h);
        }
}
Steps To ReproduceUse oxequalizer on a group that has padding-top and / or padding-bottom,
Additional InformationI'm attaching the fixed file
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

duplicate of 0003203 resolvedLinas Kukulskis oxEqualizer does not take paddings into account 

Activities

birute_meilutyte

2011-08-31 09:24

reporter   ~0005149

duplicate of 0003203