Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Make it easier to add top/bottom bars #8939

Closed

Description

@simurai

From this discussion: https://discuss.atom.io/t/placing-element-at-top-of-atom-for-package/21118

Problem:

Currently you can't easily add a bar to the top or bottom that spans across the whole width. If you try, it pushes down the status bar. I guess because atom-workspace-axis has height: 100%.

screen shot 2015-09-25 at 3 22 20 pm

An option is to add it above/below the editor, like tool-bar currently does, but that might not be desired for all packages.

Possible solution:

Add two empty <atom-panel-container> as children of <atom-workspace>. They're just placeholders and won't take up space if they are empty, but it would allow other packages to fill them.

atom-panels

Activity

  1. self-assigned this
    on Sep 25, 2015
  2. pradyunsg commented on Sep 26, 2015

    @pradyunsg

    👀

  3. simurai commented on Oct 3, 2015

    @simurai
    ContributorAuthor

    After trying it out I think I'm gonna close this again as wontfix. Here the reasoning:

    1. If we move the status-bar to take up full-width, like:

    screen shot 2015-10-03 at 10 20 49 am

    It feels weird, because the status-bar changes based on to the active editor and should stay somewhat connected and not something that is global.

    1. If we encourage other packages to take up full width, like the tool-bar:

    screen shot 2015-10-03 at 10 17 26 am

    It also feels weird because the status-bar should stay as the last thing at the bottom.

  4. jerone commented on Oct 3, 2015

    @jerone

    I disagree about that the status-bar should be connected (same width) to the editor. The status-bar can contain tiles that aren't necessary related to the editor. Besides, if I split the screen it doesn't split the status-bar too. Making the status-bar to the full width has my preference.
    I do agree that the status-bar should always stay as last thing at the bottom, but with priorities we can force that.

    Personally I have the tool-bar positioned at the top, like any other (Windows) desktop program has placed their (customizable) toolbars. To this day I find it weird that it's beside the tree-view and not above it, while it contains buttons that are related to the tree-view and not the editor only.
    I still believe this should be implemented as another API function, so packages can position their bars/panels like they want (as the first post suggests 👍).

  5. simurai commented on Oct 3, 2015

    @simurai
    ContributorAuthor

    Besides, if I split the screen it doesn't split the status-bar too.

    True. Ok, we can reopen it and at least make it technically possible.

  6. reopened this on Oct 3, 2015
  7. jerone commented on Oct 3, 2015

    @jerone

    The panels API could be extended by adding another boolean property (e.g. fullWidth) to the existing methods addBottomPanel, addLeftPanel, addRightPanel & addTopPanel.
    Or add new methods, e.g. addFullBottomPanel, addFullLeftPanel, addFullRightPanel & addFullTopPanel.

  8. Zeioth commented on Oct 12, 2015

    @Zeioth

    I'm the author of the theme atom-visual-studio-code-ui and I'm running into this issue too trying to modify the status bar width. I've tried to set the position to fixed, but then I can't see the last line of the editor.

    demo2

  9. pradyunsg commented on Oct 12, 2015

    @pradyunsg

    +1 for optional parameter in the same method.

    Not to forget, other than the bottom position, there's the top.
    I would like to hide the menu bar and use the tool-bar instead as it gives me more control over what's there (and thus quicker access to stuff I use often) and I can use the menu bar with alt any time I want for other stuff. I can (do) have keyboard shortcuts for some of those but it feels nicer to use the toolbar for things like git because it's visual.

    Except that the toolbar should really be over the sidebar as well as it is then (my) tool-bar is an application wide thing...

    @Zeioth Read here. You need to resize the atom workspace as well, to prevent hiding the last line.

  10. lock commented on Apr 16, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  11. locked and limited conversation to collaborators on Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions