question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navbar overflowing on viewport (on the right.)

See original GitHub issue

I’m trying to use this library and anything I show seems to overflow passed the viewport on the right. Strangely enough, if I set boundary=“asdlmas” as a random string value (I accidentally made a typo.) it seems to fix the issue.

Basically I have a navbar and I’m using tippy to show it, once I scale the window to be smaller, it overflows passed the viewport to the right.

Any suggestions, here is my settings where it works… but if I use boundary=“viewport” for example, it breaks and overflows.

import Tippy from '@tippy.js/react';
import 'tippy.js/dist/svg-arrow.css';
import 'tippy.js/animations/scale-subtle.css';

      <Tippy
        animation={"scale-subtle"}        
        content={profileDropdown}
        offset={"100,10"}
        interactive={true}
        sticky={true}
        visible={isOpened}
        arrow={true}
        onHide={closeProfile}
        boundary="dsdsf"
        flip={false}
        placement="bottom">
          <ProfileButton />
     </Tippy>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arianitucommented, Feb 11, 2020

@atomiks Oh weird, so it looks like it is arrow={true} without a import 'tippy.js/dist/tippy.css';

If I set arrow={false}, I do not have to import tippy.css. Is it okay to not import tippy.css to prevent the default styling or you think that’s a bad idea?

0reactions
atomikscommented, Feb 20, 2020

This will likely be fixed in the next major which uses Popper 2 (coming by the end of this month)

Read more comments on GitHub >

github_iconTop Results From Across the Web

css - Why are these navbar links overflowing on top of section ...
I am trying to get navmenu items stacked and then a background image to display in full on a smaller viewport. header {...
Read more >
Header - W3Schools Tryit Editor
<meta name="viewport" content="width=device-width, initial-scale=1"> <style> ... Style the top navigation bar */ .topnav { overflow: hidden;
Read more >
overflow-x - CSS: Cascading Style Sheets - MDN Web Docs
The overflow-x CSS property sets what shows when content overflows a block-level element's left and right edges. This may be nothing, ...
Read more >
Overflow: hidden | Webflow University
Set Overflow to hidden to prevent unwanted horizontal scrolling and extra whitespace in your project when elements exist outside the viewport.
Read more >
Glossary
... IE=9; IE=edge" /> <meta name="viewport" content="width=device-width, ... .navbar-collapse { padding-right: 15px; padding-left: 15px; overflow-x: visible ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found