Closed (fixed)
Project:
Homebox - Individual user dashboards
Version:
6.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2011 at 19:34 UTC
Updated:
20 Jun 2012 at 21:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
brianV commentedThank you for opening the new issue *as asked by the module maintainer*.
Comment #2
brianV commentedCan you attach an export of you homebox?
My suspicion is that your column widths aren't properly defined, which is causing them not to print, creating the above JS failure.
Also downgrading priority as this works correctly on a stock Drupal site and my test sites.
Comment #3
Michsk commentedi have not defined widths, is that crucial? If so then that is a strange restriction since we then can not use css to alter the width.
Comment #4
Michsk commentedThe settings page states that it is a optional feature:
Optionally set custom widths for each available region
defining widths does fix this, but this should be an option and not necessary.
Comment #5
brianV commentedlasac:
I agree - that's not how it should work.
The expected behavior is that if width isn't defined, then it should default to (100/num_regions)% width for each column.
The attached patch should implement that - can you please test it?
Comment #6
brianV commentedComment #7
Michsk commentedNo does not fix it.
Another issue is that we can not use decimals. But since we don't use pixels but percentage then decimals should work. 33.3% should be a valid width.
Comment #8
brianV commentedLooks like we cross posted.
Try this patch for the default case where no custom column widths are entered.
Comment #9
brianV commentedlasac: I've created a new issue for decimals in column widths at #1300758: Custom column widths don't accept / preserve non-integer widths.. I've included a patch in that issue; I would appreciate it if you wouldn't mind testing it.
Comment #10
Michsk commentedlatest patch fixes this.
Comment #11
rbosscher commented#8 Fixed it for me too
Comment #12
slybud commentedPatch in #8 also made my day and solved the issue : +1 for it
Comment #13
foxtrotcharlie commentedPatch in #8 works for me too. Thanks @brianV
Comment #14
drummThe original request should be fixed by #955072: Make Homebox only equalize heights of columns within the same row., which avoids the problem by using classes instead of inline styles.
It looks like part or all of BrianV's fix was committed, http://drupalcode.org/project/homebox.git/commit/1dbf189. I found this to be a problem so far with Drupal.org's upgrade to D7. We want the homebox columns to match our grid system; in D6, the theme fully handled it with css applied for homebox's classes. At the moment in D7, the inline styles are also applied. Having both is messing up the layout and the theme can't override inline styles with CSS alone. I'll look a bit more into:
Comment #15
drummI went with "A way to use the widths when needed, and avoid inline styles when not needed." If widths aren't specified at all, the space is still divided up evenly. If zero is specified for an individual width, the inline style is omitted.