Scrollbar on window instead of container? (On pages with sidebar) #48994
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found an easy way to make this:

into this:

while maintaining
.project-sidebar
,.project_nav
, and.project_nav-footer
fixed position.Yeah but why?
When User scrolls outside of the container nothing happens, with this "fix" User can scroll wherever (except on the sidebar) for scrolling to happen.
Changed status to: 'Open'
Added subscriber: @nucularJohn
Is this something you would be interested in?
Added subscribers: @pablovazquez, @fsiddi
Will look into it with @venomgfx. Thank you for the idea!
Ah that'd be nice!
Feel free to provide a patch (even submit it here so it can be applied with arc), or just let me know the changes.
Thanks a lot for checking on these issues (it's kind of embarrassing since some parts of the code are so old haha). It really helps to have new eyes on it!
I'm not comfortable with git, arc, patches, diffs, etc. and right now (summers in touristic places are busy) I don't have the time to learn them the way I think I should, so I will write it to you instead. But let me warn you, it is a "hackish" way of doing it in an already "hackish" code.
Except the toggle (show/hide) thing, everything works, but there might be some rough edges that you should soften (if that's the right way to say it (not 100% fluent in English either...)).
The concept is that: if you "position: fixed;" the content of a flex-ed container it maintains its top, right, left, bottom. To maintain the height you set it's top to 50px (so it stays below the fixed nav) and set the bottom to 0.
This is how I'm able to achieve that in Cosmos Laundromat's page with Chromium (52.0.2743.82 for Linux).
On
#project-container
remove js's (?) max-height and height, and remove "overflow: hidden;" rule.Make a container for
#project-sidebar
and#project_nav
. Set a "display: flex;" rule for it.On
#project-sidebar
remove "background-color: #1f262e;".** On
.project-tabs
add: "position: fixed; | background-color: #1f262e; | top: 50px; | bottom: 0;"On
#project_nav
remove "background-color: #33404d;".Inside
#project_nav
make a container for#project-header
,#project_tree
and#project_nav-footer
. In this container add the height of the window minus the height of the nav (js?) and add "position: fixed; | width: 240px; | background-color: #33404d;"This should work, but remember to reposition
#project_nav-footer
,.project_split
and redo the js of the toggle (show/hide) thing so it works as it should.Also if you add it to the code, re-check that classes and ids are correct and that they're are not used somewhere else.
I'll keep looking for bugs and/or weird behaviors if I find them (and if I have the time).
Saludos, from Ibiza.
Changed status from 'Open' to: 'Resolved'