Skip to content

Conversation

@enricoberti
Copy link
Contributor

closes #7081

@mistercrunch
Copy link
Member

@xtinec I know you touched this layout recently, mind reviewing this? I assume this was tested on both FF and Chrome.

Screenshots in layout-related issues/PR are always welcomed!

};

const SEARCH_HEIGHT = 46;
const SEARCH_HEIGHT = 186;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I think the hardcode here is the height of the ResultSetControl div. It appears to be 46 pixels in both Chrome and FF. Are we sure about 186 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as it was, the result table was going out of the screen (last row never visible, unless you would scroll the outer panel)

I'm generally against magic numbers in the code though, so we should probably find a proper solution for it (ie calculating the sibling heights after rendering) :)

ref="Table"
headerHeight={headerHeight}
height={height - 2}
height={height - 20}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 20 here?

@xtinec
Copy link
Contributor

xtinec commented Mar 21, 2019

Also, I have a big-ish layout refactoring PR that addresses this and the issues on Firefox. Coming out in the next day or two.
I'll tag you both on it @enricoberti @mistercrunch

@enricoberti
Copy link
Contributor Author

@xtinec yes, let's go over this after your PR - i believe this is gonna be superfluous then :) thanks Christine!

@xtinec
Copy link
Contributor

xtinec commented Mar 28, 2019

@enricoberti yep, I think #7102 supersedes it. 🙌

@enricoberti
Copy link
Contributor Author

@xtinec on the last master I still have the double scrollbar though - it seems that the outer panel it too tall. Do you want me to have a look? Thanks!

20190328_scroll 2019-03-28 12_45_32

@xtinec
Copy link
Contributor

xtinec commented Mar 29, 2019

@enricoberti Yeah, I'm seeing it as well. Trying to figure out why. I noticed it only happens when there is a horizontal scroll bar, meaning the height of the react virtualized table is off by the scrollbar height. Strangely, I accounted for this in the PR. Not sure what's causing it. 🤔 Any thoughts?
https://github.com/apache/incubator-superset/blob/71f1bbd2ec59b99d6ba6d9a4a2f9cfceaf922b80/superset/assets/src/components/FilterableTable/FilterableTable.jsx#L186

@xtinec
Copy link
Contributor

xtinec commented Mar 29, 2019

@enricoberti okay, I just figured it out. 🙂 PR out to you shortly. 🙌

@enricoberti
Copy link
Contributor Author

Thanks @xtinec! Closing this PR as superseded by yours :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SQL Lab] Remove double scrollbar from the result tab

3 participants