Navbar overflowing on viewport (on the right.)
See original GitHub issueI’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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@atomiks Oh weird, so it looks like it is
arrow={true}
without aimport 'tippy.js/dist/tippy.css';
If I set
arrow={false}
, I do not have to importtippy.css
. Is it okay to not importtippy.css
to prevent the default styling or you think that’s a bad idea?This will likely be fixed in the next major which uses Popper 2 (coming by the end of this month)