/******************************************************************************
 *
 * Copyright (c) 2020, the Regular Table Authors.
 *
 * This file is part of the Regular Table library, distributed under the terms
 * of the Apache License 2.0.  The full license can be found in the LICENSE
 * file.
 *
 */

:host {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    overflow: scroll;
    overflow-anchor: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

div.rt-virtual-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

// https://stackoverflow.com/questions/44567125/position-sticky-scroll-bouncing-when-combined-with-javascript-height-adjustme
// https://bugs.chromium.org/p/chromium/issues/detail?id=734461

div.rt-scroll-table-clip {
    position: sticky;
    contain: strict;
    overflow-anchor: none;
    width: 100%;
    height: 100%;
}

div.rt-tree-container {
    display: flex;
    align-items: center;
    height: 100%;
}

slot {
    position: absolute;
    overflow: hidden;
    overflow-anchor: none;
}
