Comments (9)
I have also met this BUG ! Wish someone could figure out what happened and solve it ... 😢
from dash-mantine-components.
@Kevinckyy @RainyBlue-w Components with similar functionality: https://fac.feffery.tech/AntdPopover
from dash-mantine-components.
@Kevinckyy @RainyBlue-w Components with similar functionality: https://fac.feffery.tech/AntdPopover
Thank you! I have tried the fac, it's a wonderful package, but the problem can only be partially solved. When I set popupContainer = 'parent'
, the same bug occured. This is the code:
from dash import html
from dash import dcc
import dash_mantine_components as dmc
import feffery_antd_components as fac
from dash_extensions.enrich import DashProxy
from dash_iconify import DashIconify
app = DashProxy()
app.layout = dmc.Grid(
[
dmc.Col(
[
html.Span(
dmc.AccordionMultiple(
[
dmc.AccordionItem([
dmc.AccordionControl('test'),
dmc.AccordionPanel([
fac.AntdPopover(
children=[
dmc.ActionIcon(
DashIconify(icon = 'akar-icons:circle-fill', color='#fa5252', width=48),
variant='transparent', mt=3
)
],
content =[
dmc.ColorPicker(format='hex', value='#fa5252'),
dmc.TextInput(value='#fa5252'),
],
popupContainer = 'parent'
),
]),
], value='test')
],
),
style={'position': 'fixed', 'width': '40vh'},
),
],
span=2
),
dmc.Col(
[
dcc.Graph(figure={}),
dmc.Text('This is a `dmc.Text` component'),
dmc.RangeSlider(),
dcc.Graph(figure={})
],
span=10
)
]
)
from dash-mantine-components.
@Kevinckyy why set popupContainer = 'parent'
, it is only used in some special layouts, what do you expect the layout to look like.
from dash-mantine-components.
@Kevinckyy why set
popupContainer = 'parent'
, it only used in some special layout.
Because I want to let the hoverCard rolling with it's target
from dash-mantine-components.
@Kevinckyy why set
popupContainer = 'parent'
, it only used in some special layout.Because I want to let the hoverCard rolling with it's target
Since your AntdPopover
is within a fixed element, a fixed element means it won't be rolled by scrolling in the current page.🤔
from dash-mantine-components.
@Kevinckyy why set
popupContainer = 'parent'
, it only used in some special layout.Because I want to let the hoverCard rolling with it's target
Since your
AntdPopover
is within a fixed element, a fixed element means it won't be rolled by scrolling in the current page.🤔
You could try to run the code, when I roll on the right, the hoverCard will also be rolling if I down't set popupContainer
from dash-mantine-components.
@RainyBlue-w
Because your AntdPopover is bound within a container that has a fixed layout, achieving a perfect balance is not possible. However, when the mouse moves out of the AntdPopover area, it will automatically close by default. Therefore, there is no need to worry about the specific scenario of moving the mouse to the right area and scrolling.
from dash-mantine-components.
@CNFeffery Thank you, I have understand it! Now I'm using fac instead of dmc to build my hoverCard, fac is really a useful components package!
from dash-mantine-components.
Related Issues (20)
- JsonInput formatOnBlur is always on
- Can't clear datepickerrange HOT 2
- Min value of RangeSlider is None
- Data Property does not get saved for a multi page setup
- SegmentedControl: Cannot read properties of null (reading 'getBoundingClientRect')
- Theme's primaryColor is ignored
- Menu hidden when overflow HOT 1
- [BUG] `Slider` and `RangeSlider` compressed to a point when `align=center` in a `dmc.Stack`.
- DatePicker Crashes with Scaled Screen Resolution HOT 1
- Carousel support [feature request] HOT 2
- Conda forge support
- [Request] How can I change the checkedIcon displayed on the left of dmc.Chip?
- Add a focus attribute to the Textarea element
- Checkboxes in TransferList don't work if the values in the list aren't strings
- 'required' prop on select & multiselect not working HOT 1
- Validate url to prevent XSS attacks
- Unable to set width of component to `100%` inside `Tooltip` HOT 4
- Example code for tabs and icons raises TypeError
- [Bug] Issue accessing value of maxDate for DateRangePicker and DatePicker components
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 dash-mantine-components.