Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

User dropdown in reservation list blocked when only one reservation #724

Closed
orenyk opened this issue Jul 16, 2014 · 20 comments
Closed

User dropdown in reservation list blocked when only one reservation #724

orenyk opened this issue Jul 16, 2014 · 20 comments

Comments

@orenyk
Copy link
Contributor

orenyk commented Jul 16, 2014

When the reservation list is short (e.g. one reservation), the dropdown menu that comes from clicking on a user's name is cut off. Not a huge issue but should be a quick fix.

selection_012

@orenyk
Copy link
Contributor Author

orenyk commented Aug 27, 2014

This is a pretty ugly UX failure, let's get it fixed in v4.1.

@orenyk orenyk added this to the 4.1 milestone Aug 27, 2014
@orenyk orenyk removed the 1 - Ready label Sep 3, 2014
@orenyk orenyk modified the milestones: 4.1, Pre-Export Oct 15, 2014
@caseywatts
Copy link
Collaborator

just postulating
maybe this is a responsive table? That might cause this weird behavior hmm

@caseywatts caseywatts modified the milestones: Wish List, Pre-Export Dec 8, 2014
@mnquintana
Copy link
Contributor

Whaaaaat how did this regress? I fixed this in 2012

@orenyk
Copy link
Contributor Author

orenyk commented Dec 9, 2014

No idea, I picked up on this a while ago. Do you remember what the fix was?

@mnquintana
Copy link
Contributor

Related to #205

@orenyk
Copy link
Contributor Author

orenyk commented Dec 9, 2014

I couldn't find the associated PR, were you guys using them back then?

@mnquintana
Copy link
Contributor

I don't think we were 😶

@mnquintana
Copy link
Contributor

This was the commit though: 3a80f63

@orenyk
Copy link
Contributor Author

orenyk commented Dec 9, 2014

Thanks. It appears to be a known issue w/ responsive tables (go @caseywatts!), not sure how we would fix it.

@mnquintana
Copy link
Contributor

It isn't officially supported, so we'd have to come up with a workaround.

@squidgetx squidgetx modified the milestones: Wish List, API/client Jan 4, 2015
@orenyk orenyk reopened this Apr 17, 2015
@leocaseiro
Copy link

I confirm the same issue, I've fixed changing the position from absolute to static. Hope works for somebody else. Worked on Chrome Desk, Chrome Mobile and Safari Mobile for iPad and iPhone.

@media (max-width: 767px) {
  .table-responsive .dropdown-menu,
  .table-responsive .dropdown-toggle {
        position: static !important;
  }
}

https://jsfiddle.net/leocaseiro/D2RLR/8075/

PS: I'm not sure if needs !important

@kaystrobach
Copy link

for me the following gave a useable result:

@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
        position: static !important;
    }
}
@media (min-width: 768px) {
    .table-responsive {
        overflow: visible;
    }
}

It includes the dropdown inside the table for mobile devices and makes is simply overflow on desktop devices

2015-05-26_06-39-12
2015-05-26_06-39-24

@orenyk
Copy link
Contributor Author

orenyk commented May 27, 2015

Thanks for the help @leocaseiro and @kaystrobach, we'll try to get this in soon!

@orenyk
Copy link
Contributor Author

orenyk commented Nov 9, 2015

Given that we have a fix for this, I'm throwing it in v5.6.0 so we can put it behind us.

@orenyk orenyk modified the milestones: v5.6.0, API/client Nov 9, 2015
@leocaseiro
Copy link

👍

@orenyk orenyk modified the milestones: 5.5.0, v5.6.0 Nov 9, 2015
@orenyk
Copy link
Contributor Author

orenyk commented Nov 9, 2015

I'm just jumping on this now, it won't need tests or anything so it should be a few minutes of work.

@orenyk
Copy link
Contributor Author

orenyk commented Nov 10, 2015

Damn, this is trickier than I thought 😕. We want the overflow behavior to be dependent on the height of the table, not on the width of the screen (it's not necessarily a responsive issue). While adding position: static !important; does fix the problem, we don't want it to be used if the table is tall enough not to scroll. What if we had a min-height instead?

@orenyk
Copy link
Contributor Author

orenyk commented Nov 10, 2015

Nope, no such thing for tables 😞. I'll look into other solutions.

@orenyk
Copy link
Contributor Author

orenyk commented Nov 10, 2015

height was the answer (based on this SO answer in the same thread). Arbitrarily setting it to 10em seemed to work, opening a PR now!

@skegel13
Copy link

skegel13 commented Apr 19, 2016

This gives the best result for me:

@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
         position: relative;
     }
 }
 @media (min-width: 768px) {
     .table-responsive {
         overflow: visible;
     }
 }

I just changed @leocaseiro and @kaystrobach answers to use relative positioning instead of static positioning. I think static positioning can break the z-index so on mobile devices, the dropdown-menu would appear behind the dropdown-backdrop making the links inaccessible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants