Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropmenu alignment #185

Closed
georgemoralis opened this issue Sep 30, 2015 · 6 comments
Closed

dropmenu alignment #185

georgemoralis opened this issue Sep 30, 2015 · 6 comments
Assignees
Labels
bug css feature Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Milestone

Comments

@georgemoralis
Copy link

having this

<b:navbarLinks pull="right">
                <b:navLink value="Dashboard" href="#" iconAwesome="tachometer"></b:navLink>
                <b:navLink value="Settings" href="#" iconAwesome="list"></b:navLink>
                <b:dropMenu value="My Account">
                    <b:navLink value="Action" href="#"></b:navLink>
                    <b:navLink value="Another action" href="#"></b:navLink>
                    <b:navLink value="Something else here" href="#"></b:navLink> 
                    <b:navLink></b:navLink>
                    <b:navLink value="Disconnect" iconAwesome="sign-out" </b:navLink>
                </b:dropMenu>
            </b:navbarLinks>

The dropdown menu is not visible .(alignment right)

Bootstrap has dropdown-menu-left , dropdown-menu-right to overcome this issue .
http://getbootstrap.com/components/#dropdowns-alignment

@stephanrauh stephanrauh added this to the v0.8.0 milestone Sep 30, 2015
@stephanrauh
Copy link
Collaborator

What about multi-level menus? We can add the CSS class dropdown-menu-right if the parent navBarLink is pulled right, but what about nested menus?

@georgemoralis
Copy link
Author

have to check with bootstrap how it handles that be i suppose they renders on the other side (left-to-right) as well

@georgemoralis
Copy link
Author

yah i verified it

When used dropdown-menu-right to align menu at right , nested menus are also draws at the left side of the dropdown (caret is still at the right side)

@stephanrauh stephanrauh self-assigned this Oct 1, 2015
@stephanrauh
Copy link
Collaborator

I would like to post-pone this to BootsFaces 0.9 because I consider nested menus a more exotic use case.

@stephanrauh stephanrauh modified the milestones: v0.9.0, v0.8.0 Nov 7, 2015
@TheCoder4eu TheCoder4eu modified the milestones: v0.9.1, v0.9.0 Jun 16, 2016
@TheCoder4eu TheCoder4eu added the css label Jul 9, 2016
@stephanrauh stephanrauh modified the milestones: v1.0.0, v0.9.1 Jul 10, 2016
@TheCoder4eu TheCoder4eu self-assigned this Nov 6, 2016
@TheCoder4eu TheCoder4eu modified the milestones: v1.1.0, v1.0.0 Nov 7, 2016
@TheCoder4eu TheCoder4eu modified the milestones: v1.5.0, v1.1.0 Mar 19, 2017
@stephanrauh stephanrauh removed their assignment Sep 24, 2017
@geopossachs
Copy link
Collaborator

geopossachs commented May 13, 2019

In the current version, v1.5.0-SNAPSHOT by pull left the navbarLink is located at left and the dropMenu is also aligned left. By pull right, the navbarLink is located at right and the dropMenu is also aligned right.

If you need to toggle the alignment of the dropMenu you can change it by the bootstrap css class via the content-class attribute

<b:navbarLinks pull="left">
   <b:navLink value="Dashboard" href="#" iconAwesome="tachometer"></b:navLink>
   <b:dropMenu value="My Account" content-class="dropdown-menu-right">
       <b:navLink value="Action" href="#"></b:navLink>
       <b:navLink value="Another action" href="#"></b:navLink>
       <b:navLink value="Something else here" href="#"></b:navLink> 
       <b:navLink></b:navLink>
       <b:navLink value="Disconnect" iconAwesome="sign-out"></b:navLink>
   </b:dropMenu>
   <b:navLink value="Settings" href="#" iconAwesome="list"></b:navLink>
</b:navbarLinks>

<b:navbarLinks pull="right">
   <b:navLink value="Dashboard" href="#" iconAwesome="tachometer"></b:navLink>
   <b:dropMenu value="My Account" content-class="dropdown-menu-left">
       <b:navLink value="Action" href="#"></b:navLink>
       <b:navLink value="Another action" href="#"></b:navLink>
       <b:navLink value="Something else here" href="#"></b:navLink> 
       <b:navLink></b:navLink>
       <b:navLink value="Disconnect" iconAwesome="sign-out"></b:navLink>
   </b:dropMenu>
   <b:navLink value="Settings" href="#" iconAwesome="list"></b:navLink>
</b:navbarLinks>

We could add an new attribute pull to b:dropMenu.
But I currently see no direct bug, which would have to be fixed.

@stephanrauh
Copy link
Collaborator

I agree. Probably the bug has been solved during the last four years. Let's close it.

@TheCoder4eu TheCoder4eu modified the milestones: v1.5.0, v1.4.2 Aug 28, 2019
@TheCoder4eu TheCoder4eu added Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation. and removed verifying issue labels Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug css feature Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Projects
None yet
Development

No branches or pull requests

4 participants