fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c

This commit is contained in:
Daniel Buchele
2018-06-12 03:39:09 -07:00
parent 1cc2d46be9
commit f7d487dd76
42 changed files with 1100 additions and 1080 deletions

View File

@@ -113,7 +113,7 @@ export default class VirtualList extends Component<
// Overscan: render blocks of rows modulo an overscan row count
// This dramatically reduces DOM writes during scrolling
if (overscanCount) {
start = Math.max(0, start - start % overscanCount);
start = Math.max(0, start - (start % overscanCount));
visibleRowCount += overscanCount;
}

View File

@@ -65,8 +65,8 @@ const DesktopDropdownItemContainer = styled.view(
type DesktopDropdownItemState = {|hovered: boolean|};
type DesktopDropdownItemProps = {
onClick?: false | ?(event: SyntheticMouseEvent<>) => void,
onHover?: false | ?() => React$Node,
onClick?: false | ?((event: SyntheticMouseEvent<>) => void),
onHover?: false | ?(() => React$Node),
children?: React$Node,
deactivate?: () => void,
};

View File

@@ -86,7 +86,7 @@ const TableHeadColumnContainer = styled.view(
const RIGHT_RESIZABLE = {right: true};
function calculatePercentage(parentWidth: number, selfWidth: number): string {
return `${100 / parentWidth * selfWidth}%`;
return `${(100 / parentWidth) * selfWidth}%`;
}
class TableHeadColumn extends PureComponent<{