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

georg_nordhausen’s picture

Same here. It works as expected if logged in. But jumps for anonymous users. I have not found a solution yet. Anyone else?

manuel garcia’s picture

Category: bug » feature
Status: Active » Closed (works as designed)

This 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.

andyf’s picture

Title: Jumping » Jumping when not logged in

Like GeorgX I thought there was a bug which caused jumping when I wasn't logged in. After a bit of digging:

  • It actually only worked properly when I was logged in as user 1, indicating a permissions problem.
  • A binary search of the permissions (groan) showed that if I had administer blocks it wouldn't jump(!).
  • Comparing the markup I saw the difference was the block had the class with-block-editing which gave it position: relative which was the solution to the problem.

So if I understand correctly, your view containers must have position: relative. HTH someone!

manuel garcia’s picture

Well, 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...

andyf’s picture

This 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!)

mherchel’s picture

#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;}

birdmurmur’s picture

Thanks so much AndyF! setting the position for that div works like charm