#4192 closed Defect (fixed)
Widget column height issues on the profile page
| Reported by: | Flexx | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Elgg 1.8.3 |
| Component: | JavaScript | Version: | 1.8 |
| Severity: | minor | Keywords: | profile,widget |
| Cc: | brett@… | Difficulty: |
Description
There seems to be some kinda overflow or something when you add widgets to your profile (this seems to happen in the profile only), At first if you add the widgets you wont notice, but if you reload the page and scroll to the bottom of the page you see a big space below.
Steps to reproduce:
1) Remove all widgets and reload page.
2) Add all widgets and reload page (the more widgets you add is the more space you get)
3) Scroll to the bottom
Change History (12)
comment:1 follow-up: ↓ 2 Changed 18 months ago by Flexx
comment:2 in reply to: ↑ 1 Changed 18 months ago by Flexx
- Resolution set to fixed
- Status changed from new to closed
Replying to Flexx:
I find the error, Seems to be in this piece of code:
/
- Make all elements have the same min-height *
- This addresses the issue of trying to drag a widget into a column that does
- not have any widgets. *
- @param {String} selector
- @return void */
elgg.ui.widgets.equalHeight = function(selector) {
var minHeight = 0;
$(selector).each(function() {
if ($(this).height() > minHeight) {
minHeight = $(this).height();
}
})
$(selector).css('min-height', minHeight);
};
When i remove it. Everything works ok. Not sure if something is missing in it or what cuz im not any good at js.
Change the var maxHeight = 0; to var maxHeight = height + 'px';
comment:3 Changed 18 months ago by cash
Did you mean to close this ticket? Closed tickets do not show up on our list of things to fix.
Also, can you upload a image that shows the issue and mention what browsers you see it in?
comment:4 Changed 18 months ago by Flexx
- Resolution fixed deleted
- Status changed from closed to reopened
comment:5 Changed 18 months ago by cash
Thanks for the images. I'll take a look at the JavaScript for this when I have time.
comment:6 Changed 18 months ago by Flexx
No problem.
comment:7 Changed 17 months ago by Flexx
Just to notify that evan fixed this @ https://github.com/Geminixx/Elgg/commit/ebf92159e4e44014c0090e3bf1ed01184571ec8b#commitcomment-792979
comment:8 Changed 17 months ago by cash
Refs #4192 adds proper 'px' to minHeight but does not solve the issue
Changeset: 5ee43086ec79b38e3f2cdb288f80bd5f24d413b1
comment:9 Changed 17 months ago by cash
- Component changed from Profile to JavaScript
- Milestone changed from Needs Review to Elgg 1.8.3
The problem is tied to the approach rather than being a simple typo
comment:10 Changed 17 months ago by cash
- Status changed from reopened to new
- Summary changed from Profile Error (seems to be overflow/javascript/widget related) to Widget column height issues on the profile page
comment:11 Changed 17 months ago by Cash Costello
- Resolution set to fixed
- Status changed from new to closed
Fixes #4192 making the bottom of widget columns equal rather than height
Changeset: 855de1b33e1ba1753ac1a5088e640e5fcff09f79
comment:12 Changed 16 months ago by Cash Costello
Fixes #4192 making the bottom of widget columns equal rather than height
Changeset: 855de1b33e1ba1753ac1a5088e640e5fcff09f79



I find the error, Seems to be in this piece of code:
/
elgg.ui.widgets.equalHeight = function(selector) {
};
When i remove it. Everything works ok. Not sure if something is missing in it or what cuz im not any good at js.