Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

fix(legacy-table): container height on tall headers #398

Merged
merged 2 commits into from Mar 11, 2020

Conversation

ktmud
Copy link
Contributor

@ktmud ktmud commented Mar 11, 2020

Previous change used fixed heights for those controls, as is in the new lunar data table chart implementation. It turns this breaks things. The table's scroll body overflows when header or search/pagination controls are too tall.

This fix reverts back to parsing heights from the rendered DOM elements.

Test Plan

After the fix, there should be some whitespace between table container and the root.

image

馃悰 Bug Fix

@ktmud ktmud requested a review from a team as a code owner March 11, 2020 19:04
@codecov
Copy link

codecov bot commented Mar 11, 2020

Codecov Report

Merging #398 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #398      +/-   ##
=========================================
+ Coverage     2.8%   2.83%   +0.03%     
=========================================
  Files         186     186              
  Lines        5813    5813              
  Branches      372     373       +1     
=========================================
+ Hits          163     165       +2     
  Misses       5623    5623              
+ Partials       27      25       -2
Impacted Files Coverage 螖
...i-legacy-plugin-chart-table/src/ReactDataTable.tsx 78.2% <100%> (+2.56%) 猬嗭笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update df8555d...48e0f8a. Read the comment docs.

@netlify
Copy link

netlify bot commented Mar 11, 2020

Deploy preview for superset-ui-plugins ready!

Built with commit 48e0f8a

https://deploy-preview-398--superset-ui-plugins.netlify.com

@kristw kristw merged commit b71a77d into apache-superset:master Mar 11, 2020
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
)

* fix(legacy-table): container height on tall headers

* fix(legacy-table): possible undefined lint error
lexisstv pushed a commit to utrace-ltd/superset-ui-plugins that referenced this pull request Jun 1, 2020
)

* fix(legacy-table): container height on tall headers

* fix(legacy-table): possible undefined lint error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants