Hello!
Javascript calculating height of scan by computing quantity of div elements in list. But if one item use more then one row javascript calculate wrong height. And we can see some jumping which make me mad. Could you fix it?
Hello!
Javascript calculating height of scan by computing quantity of div elements in list. But if one item use more then one row javascript calculate wrong height. And we can see some jumping which make me mad. Could you fix it?
Comments
Comment #1
georg_nordhausenSame here. It works as expected if logged in. But jumps for anonymous users. I have not found a solution yet. Anyone else?
Comment #2
manuel garcia commentedThis is a feature, and is never going to in 6.x. You'll have to do it yourself with a helper js script on your side that fits your needs, becasue everyone's different needs, and I don't plan on growing the script twice the size just to fit everyone's need.
On 7.x however, the accordion plugin in jquery ui, wich is now part of core, has this feature, so the future looks bright. Feel free to help out there, test, etc.
Comment #3
andyf commentedLike GeorgX I thought there was a bug which caused jumping when I wasn't logged in. After a bit of digging:
with-block-editingwhich gave itposition: relativewhich was the solution to the problem.So if I understand correctly, your view containers must have
position: relative. HTH someone!Comment #4
manuel garcia commentedWell, honestly, this happens if youre theme has this feature for block editing... and not all themes do it the same. Zen has this feature and I don't see any jumping...
Comment #5
andyf commentedThis was in a Zen sub-theme, and it might well have been caused by some styles that we added. (ie I didn't mean to imply this was a bug, only to help others who might be in the same position!)
Comment #6
mherchel#3 fixed this for me. In your CSS file add the following:
.view-accordian .view-content {position:relative;}replace "accordian" in view-accordian with the name of your view. So, if your view was named "features", the correct code is
.view-features .view-content {position:relative;}Comment #7
birdmurmur commentedThanks so much AndyF! setting the position for that div works like charm