Comments (4)
Hi @mainframev ,
Amazing! it works for me.
I tried overflowBoundaryPadding property before, but I didn't know this property only takes effect when setting autoSize true.
Anyway, I'll close this ticket. Thank you very much
from fluentui.
Hi @qjkobe 👋🏻
I think it's expected behavior. This is how flip works.
In order to ignore automatic flipping, try to use pinned
prop, it disables automatic repositioning of the component, it will always be placed according to the values of align
and position
props, regardless of the size of the component, the reference element or the viewport.
<Combobox
positioning={{
pinned: true,
position: 'below',
}}
className={styles.root}
onOptionSelect={onOptionSelect}
aria-labelledby={comboId}
placeholder="Select an animal"
onChange={(ev) => setQuery(ev.target.value)}
value={query}
>
{children}
</Combobox>
from fluentui.
Hi @mainframev ,
I get your point that it's behavior of "flip" to change the popover dropdown to the top of the control. However, the problem is that when the popover drop down is re-positioned to the top, why isn't the height of the popover calculated agian? That's the root cause of the hidden options.
If I change the position to pinned and turn it to bottom forever, some a11y issues may happen that there are 2 scroll bar:
from fluentui.
Hi @qjkobe 👋🏻
Thank you for quick response. Now got it, In order to prevent the content overflowing by viewport you can use autoSize
prop in positioning
(fits popping content within available space in viewport) 🙂
<Combobox
positioning={{
autoSize: true,
overflowBoundaryPadding: {
top: 10,
},
}}
className={styles.root}
onOptionSelect={onOptionSelect}
aria-labelledby={comboId}
placeholder="Select an animal"
onChange={(ev) => setQuery(ev.target.value)}
value={query}
>
{children}
</Combobox>
);
from fluentui.
Related Issues (20)
- [Feature]: improve hover and touch interactions HOT 2
- [Bug]: Chat component accessibility issue HOT 1
- [Bug]: Tag picker Inline suggestion accessibility issue HOT 2
- [Bug]: Tooltip inside popover doesn't get automatically displayed on focus HOT 1
- Update useCustomStyleHooks in the Nav components
- ∯Today's!!~ fReE!!✔Xbox Gift Card Codes 2024 🎮 Up to $100 in Free Xbox Codes in UNDER 5 minutes!
- Free PSN Codes 2024⚡ PSN Code Giveaway 2024
- +++)))NeW UpdatE,,,Free PSN Codes 2024⚡ PSN Code Giveaway 2024 { sdfert}
- ✦nEwEsEt✦~FrEe xBoX GiFt cArD CoDeS [uPdAtEd] 50+ NeW ReDeEm cOdE 2024✔hOw tO GeT XbOx gIfT CaRdS FoR FrEe
- *[*Exclusive*]✦nEwEsEt✦~FrEe xBoX GiFt cArD CoDeS [uPdAtEd] 50+ NeW ReDeEm cOdE 2024✔hOw tO GeT XbOx gIfT CaRdS FoR FrEe
- FOR.......cODES FREE psn GIFT CARDS~free psn gift card codes 2024 ✔ fREE psn cODES 2024 😳 psn cODE gIVEAWAY
- **[100% Working],,FOR.......cODES FREE psn GIFT CARDS~free psn gift card codes 2024 ✔ fREE psn cODES 2024 😳 psn cODE gIVEAWAY
- <(New_Method)>@ @<Free Roblox Gift Card Codes 2024 ➖Free Roblox Gift Card Codes
- ∯Today's!!~ [[GeT-fReE!]] Bingo Blitz Free Credits 2024 - Freebies Promo Codes Rewards
- ((Quick & Easy))<fReE NiNtEnDo eShOp sWiTcH GiFt cArD CoDeS 2024 fReE NiNtEnDo eShOp CoDeS
- <((Latest_NOW))>@ FREE!!* 100$ Eshop Codes Get Nintendo Switch Gift Card $$ Free Nintendo eShop Codes
- # ((LATEST Update) !!>FREE Nintendo Eshop Gift Card Code 2024 ((Update Method)) No Verification
- <((Guide Ultimate))>Roblox Free Gift Card Codes List 2024 No Human Verification
- # ((LATEST Update) FrEe!! rObUx]]hOw tO GeT FrEe rObUx iN RoBlOx 100% WoRkInG In 2024 WiThOuT SuRvEy & vErIfIcAtIoN
- ((Quick & Easy)) $$FREE Roblox Gift Card Codes 2024 FREE Roblox Gift Card Codes 2024 Unused
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui.