This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 73
Firefox doesn't allow as much height for cells, leading to overflow #663
Comments
App used for the above gifs (taken from the docs) expand appimport dash
import dash_html_components as html
import dash_table
import pandas as pd
from collections import OrderedDict
app = dash.Dash(__name__)
df = pd.DataFrame(OrderedDict([
('climate', ['Sunny', 'Snowy', 'Sunny', 'Rainy']),
('temperature', [13, 43, 50, 30]),
('city', ['NYC', 'Montreal', 'Miami', 'NYC'])
]))
app.layout = html.Div([
dash_table.DataTable(
id='table-dropdown',
data=df.to_dict('records'),
columns=[
{'id': 'climate', 'name': 'climate', 'presentation': 'dropdown'},
{'id': 'temperature', 'name': 'temperature'},
{'id': 'city', 'name': 'city', 'presentation': 'dropdown'},
],
editable=True,
dropdown={
'climate': {
'options': [
{'label': i, 'value': i}
for i in df['climate'].unique()
]
},
'city': {
'options': [
{'label': i, 'value': i}
for i in df['city'].unique()
]
}
}
),
html.Div(id='table-dropdown-container')
])
if __name__ == '__main__':
app.run_server(debug=True) |
In my version of Chrome, the <div class="dash-dropdown-cell-value-container dash-cell-value-container" /> is rendered with a height of This div has the following CSS applied: .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td .dash-cell-value-container {
width: 100%;
height: 100%;
} In Firefox, if I'm using Additional context (private repo): plotly/dash-design-kit#582 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In my version of Firefox, a dropdown within a cell with a new value selected (i.e. not on initial render) will overflow its cell container. The bottom grey border is overlapped:
Firefox:

Chrome

The text was updated successfully, but these errors were encountered: