At the minimum:
- Width
- Height
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | views-timelinejs-layout-settings-1795760-8.patch | 3.48 KB | xaqrox |
| #7 | views-timelinejs-layout-settings-1795760-6.patch | 3.49 KB | xaqrox |
At the minimum:
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | views-timelinejs-layout-settings-1795760-8.patch | 3.48 KB | xaqrox |
| #7 | views-timelinejs-layout-settings-1795760-6.patch | 3.49 KB | xaqrox |
Comments
Comment #1
polComment #3
loparr commentedHello,
Where can the settings for width and height be found?
Thank you
Comment #4
fluxsauce commentedAh, this was completed and closed, then rolled back due to some destructive changes. There's an active issue requesting this and other features - #1867734: Could we get the attributes so that we could change them to our needs - but this is separate enough to keep it open.
Comment #5
operinko commentedHeight and width have been re-added as Views configurables.
Comment #6
operinko commentedComment #7
xaqroxI tried out these new settings and found that my view disappeared when I put "500px" for the height. There's no indication of what if any units to use in these new options. So, here's a patch based on the latest dev that gives the option of choosing px or % for width and height.
Comment #8
xaqroxSorry, the last patch had an error, try this one.
Comment #9
operinko commentedDid you test your own patch?
Based on my experiments with the TimelineJS library, when using any unit for the height, timeline won't render.
This is due to it expecting an arbitrary number as the parameter, to be used as pixels.
Height, however, seems to accept px and % correctly.
Comment #10
xaqroxI tried both "units" for both dimensions. I use scare quotes there because there is actually no unit used when you choose "px", as per your comment above. In other words, when you enter "500" for the value and "px" for the units, the javascript gets "500", whereas if you choose "%" the javascript gets "500%". See lines 9 and 10 of the patch for that logic. I confirmed that the markup was getting the right values in the style attribute, though the timeline ended up with a computed height of 0 when I used % for height, since the parent element had no height set in my theme. Did the patch work for you?
EDIT: I suppose to be thorough I should test the height with % in a theme that DOES put a set height on
div.view-content...Comment #11
operinko commentedThe patch does seem to be working, I'll commit it at some point today.
Comment #12
operinko commented