Skip to content
Snippets Groups Projects
Commit 0dfc27af authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #1235 from metabase/ie_scrollbars

Various scroll bar fixes for non-Mac platforms (a.k.a. we forgot 'overflow: auto' exists)
parents a30a7159 d63d541d
No related branches found
No related tags found
No related merge requests found
Showing with 15 additions and 20 deletions
......@@ -130,7 +130,6 @@ export default class MetadataField extends Component {
value={_.find(MetabaseCore.field_special_types, (type) => type.id === this.props.field.special_type)}
options={MetabaseCore.field_special_types}
onChange={this.onSpecialTypeChange}
showScrollbars={true}
/>
{targetSelect}
</div>
......
......@@ -37,7 +37,7 @@ export default class MetadataSchema extends Component {
<div className="flex-half px1">Data Type</div>
<div className="flex-half px1">Additional Info</div>
</div>
<ol className="border-top border-bottom scroll-y">
<ol className="border-top border-bottom">
{fields}
</ol>
</div>
......
......@@ -110,7 +110,7 @@ export default class MetadataTable extends Component {
<div className="flex-half px1">Details</div>
</div>
</div>
<ol className="border-top border-bottom scroll-y">
<ol className="border-top border-bottom">
{fields}
</ol>
</div>
......
......@@ -6,8 +6,7 @@ import cx from "classnames";
export default class ColumnarSelector extends Component {
static propTypes = {
columns: PropTypes.array.isRequired,
showScrollbars: PropTypes.bool
columns: PropTypes.array.isRequired
};
render() {
......@@ -57,7 +56,7 @@ export default class ColumnarSelector extends Component {
}
return (
<div key={columnIndex} className={cx("ColumnarSelector-column", { "scroll-show": this.props.showScrollbars })}>
<div key={columnIndex} className="ColumnarSelector-column scroll-y scroll-show">
{sectionElements}
</div>
);
......
......@@ -11,8 +11,7 @@ export default class Select extends Component {
placeholder: PropTypes.string,
onChange: PropTypes.func,
optionNameFn: PropTypes.func,
optionValueFn: PropTypes.func,
showScrollbars: PropTypes.bool
optionValueFn: PropTypes.func
};
static defaultProps = {
......@@ -64,7 +63,6 @@ export default class Select extends Component {
triggerClasses={"AdminSelect " + (this.props.className || "")}>
<ColumnarSelector
columns={columns}
showScrollbars={this.props.showScrollbars}
/>
</PopoverWithTrigger>
);
......
......@@ -9,7 +9,6 @@
min-width: 180px;
min-height: 300px;
max-height: 340px;
overflow-y: scroll;
flex: 1;
}
......
......@@ -26,7 +26,7 @@
outline: none;
max-height: 90%;
overflow-y: scroll;
overflow-y: auto;
}
.Modal.Modal--small {
......
.SortableItemList-list {
overflow-y: scroll;
overflow-y: auto;
}
......@@ -28,8 +28,8 @@
height: 100vh;
}
.scroll-y { overflow-y: scroll; }
.scroll-x { overflow-x: scroll; }
.scroll-y { overflow-y: auto; }
.scroll-x { overflow-x: auto; }
/* display utilities */
.block { display: block; }
......
......@@ -73,7 +73,8 @@
.Query-filters {
display: flex;
overflow-x: scroll;
overflow-x: auto;
overflow-y: hidden;
max-width: 400px;
white-space: nowrap;
height: 55px;
......@@ -121,11 +122,11 @@
.SelectionList {
padding-top: 5px;
overflow-y: auto;
max-height: 340px;
}
.SelectionItems {
overflow-y: scroll;
max-height: 340px;
max-width: 320px;
}
......
......@@ -180,8 +180,7 @@ export default class SelectionModule extends Component {
renderPopover(selection) {
if(this.state.open) {
var itemListClasses = cx({
'SelectionItems': true,
var itemListClasses = cx("SelectionItems", {
'SelectionItems--open': this.state.open,
'SelectionItems--expanded': this.state.expanded
});
......@@ -198,7 +197,7 @@ export default class SelectionModule extends Component {
>
<div className={itemListClasses}>
{searchBar}
<ul className="SelectionList">
<ul className="SelectionList scroll-show scroll-y">
{this._listItems(selection)}
</ul>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment