Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.26
Component:
Toolbar App
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2015 at 13:24 UTC
Updated:
17 Mar 2016 at 18:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
candelas commentedComment #2
mpotter commentedHere are instructions on creating a patch: https://www.drupal.org/node/707484
Your patch doesn't seem to have been created correctly but I can see what you are trying to do. I'd recommend improving this a bit to first check to see if the navbar-tray-horizontal class is already on the tray or not.
I'm also not sure why just resizing the window would be removing that class so I'd be interested in learning more about why this is required. Perhaps the core issue needs to be fixed elsewhere?
Comment #3
candelas commentedHello
For what I learned, the Navbar module makes it automatic. Since in Open Atrium we need it always vertical, we need to make something to avoid the change. I don't know other place where to do it :)
Respect to the code, I check now if it has the class.
Comment #4
candelas commentedI made the patch with NetBeans. I haven't done a local branch with git of Open Atrium. I use drush to update. But by sure I have made something bad. If I have to make other patch because you say yes, I will take a look :) Thanks for the link
Comment #5
cgove commentedThis might be a better way to solve it:
The NavBar module has a built in function to lock the navbar in the vertical position when you click the button. It stores this information in localStorage. Adding:
Before:
}(jQuery));Fixes it for me. Additionally the navbar stays open now after resizing.
One more minor issue remains. It appears the content right push happens at a different breakpoint than the navbar hiding. It looks the navbar disappears at about 777px and the content doesn't shift left until about 625px.
Comment #6
mpotter commentedcgove++ Thanks for that! I was digging into navbar myself trying to figure out how to do exactly that but didn't know how to set that option. A much better solution. Removed the previous and committed this to 07aa9f0.
I also fixed the content being pushed right by just removing the navbar-vertical from the *body* field of the page.
Comment #7
cgove commentedI managed to fix the breakpoint issue with this css in my sub-theme:
Comment #8
mpotter commentedYep, that will work also. But in OA we just removed the class itself since it doesn't need to be on the body anyway. (And since I also try to avoid !important)
Comment #9
cgove commentedJust a personal preference thing, I suppose. I like the push because it leaves the left side buttons accessible while on admin pages. The !important is only necessary because of this code in compass_radix/_structure.scss:
Comment #10
mpotter commentedI thought the point was to *remove* the push. Why would you need to access the left side of the page when the Admin menu is pulled down? Just Click the Admin button again to remove the menu.
The problem with your CSS is that it will break in the 2.30 release because the body field will no longer have the navbar-vertical class.
Comment #11
cgove commentedThat's fine, I can add it back with this preprocess function:
Edit: Had to add the class twice because the OA function happens after the subtheme function. Not pretty, but it works.
Comment #12
mpotter commentedThis was fixed in #6
Comment #14
gandhiano commentedCross-linking to similar issue and its answers on StackExchange