Skip to content

Fix grid resizing automatically when outer parent size not specified#603

Merged
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:602-grid-size
Jun 3, 2022
Merged

Fix grid resizing automatically when outer parent size not specified#603
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:602-grid-size

Conversation

@mofojed
Copy link
Member

@mofojed mofojed commented Jun 3, 2022

Canvas renders a new line after the element (apparently). Set it to display: block so it doesn't.
See https://stackoverflow.com/questions/15807833/div-containing-canvas-have-got-a-strange-bottom-margin-of-5px

Fixes #602

@mofojed mofojed added the bug Something isn't working label Jun 3, 2022
@mofojed mofojed added this to the June 2022 milestone Jun 3, 2022
@mofojed mofojed requested a review from dsmmcken June 3, 2022 18:04
@mofojed mofojed self-assigned this Jun 3, 2022
@codecov
Copy link

codecov bot commented Jun 3, 2022

Codecov Report

Merging #603 (0f24b44) into main (32ad9db) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #603   +/-   ##
=======================================
  Coverage   36.50%   36.50%           
=======================================
  Files         390      390           
  Lines       28613    28615    +2     
  Branches     6747     6747           
=======================================
+ Hits        10444    10446    +2     
  Misses      17827    17827           
  Partials      342      342           
Flag Coverage Δ
unit 36.50% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/code-studio/src/styleguide/Grids.jsx 100.00% <ø> (ø)
packages/grid/src/Grid.tsx 64.59% <100.00%> (+0.09%) ⬆️

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 32ad9db...0f24b44. Read the comment docs.

@mofojed mofojed merged commit 062934a into deephaven:main Jun 3, 2022
@mofojed mofojed deleted the 602-grid-size branch June 3, 2022 19:16
@github-actions github-actions bot locked and limited conversation to collaborators Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grid grows every render unless within a container that is explicitly sized

2 participants