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

Addon not working in iOS? #36

Open
ghost opened this issue Sep 12, 2016 · 2 comments
Open

Addon not working in iOS? #36

ghost opened this issue Sep 12, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 12, 2016

I have a simple component utilizing ember-tether to show a dropdown menu:

<a href="#" {{action 'show'}} class="dropdown-link" data-nofire='true'>
  ☰
</a>

{{#if showDropdown}}
  {{#ember-tether target='.dropdown-link' targetAttachment='bottom left' attachment='top left'}}
    {{header-dropdown-menu}}
  {{/ember-tether}}
{{/if}}

This works properly on web browsers, but once it get's into an iOS simulator, the tether doesn't seem to be attaching itself to the element referenced in the component. It just adds the tethered component below the rest of the html (screenshot).

It seems that the styles aren't properly being added to the highlighted div below in iOS. However, if I inspect the div in iOS, I can see that they styles are there, just not being shown properly. If I uncheck and check position absolute, it fixes itself and looks correct ...

Correct (web)

screenshot 2016-09-12 11 40 16

screenshot 2016-09-12 11 50 26

# Incorrect (iOS Simulator)

screenshot_2016-09-12_11_40_00

screenshot 2016-09-12 11 50 43

@RafalWilinski
Copy link

+1

1 similar comment
@mschinis
Copy link

+1

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

No branches or pull requests

2 participants