View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003203 | OXID eShop (all versions) | 3.1. Design, GUI, UX | public | 2011-08-30 15:34 | 2011-09-13 14:56 |
Reporter | aggrosoft | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.1 revision 38045 | ||||
Fixed in Version | 4.6.0_beta2 | ||||
Summary | 0003203: oxEqualizer does not take paddings into account | ||||
Description | File 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 Reproduce | Use oxequalizer on a group that has padding-top and / or padding-bottom, | ||||
Additional Information | I'm attaching the fixed file | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
has duplicate | 0003202 | closed | birute_meilutyte | oxEqualizer does not take paddings into account |