View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003202 | OXID eShop (all versions) | 3.1. Design, GUI, UX | public | 2011-08-30 15:33 | 2011-08-31 09:24 |
Reporter | aggrosoft | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 4.5.1 revision 38045 | ||||
Summary | 0003202: 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. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
duplicate of | 0003203 | resolved | Linas Kukulskis | oxEqualizer does not take paddings into account |