Whenever I select a different page, the sweaver interface expands. Could there be an option for it to stay minimized until the user expands it?

Also, when there is no current need to make changes to the css, could there be a way to make the interface disappear or be even more minimal until re-enabled? I believe that if one disables the entire module, the changed css will no longer be used, is that correct?

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dagomar’s picture

This was bothering me as well. It makes no sence that sweaver always pops up. This happens if the cookie isn't set yet. I don't have time to build an option, which I believe shouldn't be an option in the first place. The thing should just stay closed when not in use. This patch should fix that (although it should be tested perhaps).

raystuart’s picture

I'm seeing this behavior. The patch helps, but on first load the bar is still expanded because of #sweaver-middle. The patch helps in that the bar isn't "active", but it is still expanded.

Adding an extra comment to increase the comment count for my patch to #3, since the first one already has -2.patch

raystuart’s picture

This patch builds on the first one and sets #sweaver-middle to height 0 in the same way currently implemented. This should probably be considered a band-aid. It might be better if it started off 0 and was adjusted if the bar is active rather than the opposite. Or maybe it should be based on .sweaver being present in the body tag?