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

Listbox overflow clipped on iOS #72

Open
2 of 8 tasks
rwestlund opened this issue Oct 1, 2017 · 5 comments
Open
2 of 8 tasks

Listbox overflow clipped on iOS #72

rwestlund opened this issue Oct 1, 2017 · 5 comments
Labels

Comments

@rwestlund
Copy link

Description

Using paper-dropdown-menu in a dialog with paper-dialog-scrollable causes the listbox to be clipped on iOS. The issue is only present when paper-dialog-scrollable is used.

Expected outcome

The listbox overflow should be visible like it is on other devices.

Actual outcome

The overflow is clipped.

Live Demo

https://jsbin.com/qoqalurexa/1/edit?html,console,output

Steps to reproduce

See demo.

Browsers Affected

  • Chrome on iOS 10.3
  • Firefox
  • Safari on iOS 10.3
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@deluxestyle
Copy link

is someone working on that?

@madrover
Copy link

madrover commented Feb 4, 2018

Same issue here, found on Home Assistant.
It can be reproduced both on Safari on iPad and Iphone and the native Home Assistant app, which I guess uses the same Safari engine.

@TypQxQ
Copy link

TypQxQ commented Feb 8, 2018

Is anyone working on this?
This makes HA quite useless on iOS for me when I want to control the temperatrure.

@valdrinkoshi
Copy link
Member

This is similar to #73

<paper-dialog-scrollable> creates its own stacking context in this line:

That mixin sets -webkit-overflow-scrolling: touch (see source), and that property creates a new stacking context on iOs.

A stacking context will trap all content within it, e.g. see this example http://jsbin.com/kuboqa/1/edit?html,output

This is not really fixable as it's a composition problem, sorry :/

One way could be to reset -webkit-overflow-scrolling: auto through the --paper-dialog-scrollable mixin when the paper-dropdown-menu is opened, but that's a bit hacky, and most likely you'd still have the dropdown content clipped by <paper-dialog> (which sets its own stacking context as well through position: fixed and z-index

<!-- my-element template -->
<style>
  paper-dialog-scrollable[no-overflow-scrolling] {
    --paper-dialog-scrollable: {
      -webkit-overflow-scrolling: auto
    };
  }
</style>
<paper-dialog-scrollable no-overflow-scrolling$="[[_dropdownOpened]]">
   <paper-dropdown-menu opened="{{_dropdownOpened}}">

@deluxestyle
Copy link

Seems to be fixed in home assitant

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

No branches or pull requests

5 participants