Table cell misalignment and table getting wider when moving the mouse over it with flex layout
オープン
まだ誰も着手していません。
bug
dash-data-table
P3
- 主要言語
- Python
- スター
- 24.4k
- フォーク
- 2.3k
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 13
説明
Describe your context
Here's my setup:
python --version
Python 3.7.5
conda list dash
# Name Version
dash 1.4.1
dash-core-components 1.3.1
dash-html-components 1.0.1
dash-renderer 1.1.2
dash-table 4.4.1
- OS: Windows 7
- Browsers:
- Chrome 77.0.3865.75
- IE 11.0.9600.19504
Describe the bug
Consider there following piece of code:
import os
import dash
import dash_html_components as html
import dash_table
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
app = dash.Dash(__name__)
app.layout = html.Div(
children=[
dash_table.DataTable(
id='table',
columns=[{'name': c, 'id': c} for c in df.columns],
fixed_rows=dict(headers=True, data=0),
data=df.to_dict('records')
)
],
className='eight columns',
style={'display': 'flex', 'justify-content': 'center'})
if __name__ == '__main__':
app.run_server(debug=True)
Now we have two problems:
- The browser renders the table with a misalignment between header and the rest of the table, see screenshots below
- When I start moving my mouse over the table then every time the mouse pointer crosses any of the cell boundaries then the table gets a few pixels wider (in Chrome) or smaller (in IE), see screenshots below.
Expected behavior
- There should be no misalignment between header and the rest of the table
- The mouse moving over the table should have no effect whatsoever.
Screenshots
Initial state in Chrome:

After having moved the mouse over the table for a bit:

Initial state in IE:

After having moved the mouse over the table for a bit:

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された Python Dash DataTable の例を使用し、flex レイアウトと固定ヘッダー行で問題を再現します。Chrome と IE でセルの境界をまたいでポインターを移動しながら、ヘッダーとボディの位置合わせ、およびテーブル幅を確認します。ヘッダーの位置が揃ったままになり、マウスの移動によってテーブル幅が変化しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100