Skip to content

Element renders off-screen for mobile #170

@adiakritos

Description

@adiakritos

When I use the drop as a tooltip in a form, it breaks when the screen is reduced to mobile screen width at 320px.

Please see the screenshot here:

screen shot 2017-03-01 at 11 04 17 am

Shouldn't it move to the left a little to stay within the viewport? It's currently push the page width out:

screen shot 2017-03-01 at 11 09 38 am

How do I fix this?

Here is the code:

<a class="drop-target drop-target-example-drop-theme-arrows-bounce-dark ss-help"></a>

var drop = new Drop({
   target: document.querySelector('.drop-target'),
   classes: 'drop-theme-arrows-bounce-dark',
   openOn: 'click',
   content: this.content,
   position: 'top center',
   constrainToWindow: true,
   constrainToScrollParent: false
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions