Skip to content

Commit

Permalink
This makes tooltips visible outside of the overflow container
Browse files Browse the repository at this point in the history
I can't explain yet how it works but it does at least in chrome
and firefox
  • Loading branch information
Philipp Hinrichsen committed Mar 10, 2016
1 parent ed2a8ee commit 4a685e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/css/components/app-modal.less
Expand Up @@ -65,4 +65,7 @@
background-image: url("img/icons/icon-help-inverse.svg");
}
}
.overflow-static {
position: static;
}
}
2 changes: 1 addition & 1 deletion src/css/components/modal.less
Expand Up @@ -37,7 +37,6 @@

max-height: calc(~"80vh" - (@modal-header-height+@modal-footer-height));
word-wrap: break-word;
overflow: auto;

.row.full-bleed {
margin-left: -@modal-body-padding;
Expand Down Expand Up @@ -85,6 +84,7 @@
.tooltip-container {
display: inline-block;
margin-left: @horizontal-spacing-unit*0.5;
position: absolute;

.icon {
opacity: .4;
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/LocalVolumesComponent.jsx
Expand Up @@ -84,7 +84,7 @@ var LocalVolumesComponent = React.createClass({
type="number"/>
</FormGroupComponent>
</div>
<div className="col-sm-8">
<div className="col-sm-8 overflow-static">
<FormGroupComponent
fieldId={`localVolumes.containerPath.${i}`}
label={containerPathLabel}
Expand Down
Expand Up @@ -186,7 +186,7 @@ var OptionalPortsAndServiceDiscoveryComponent = React.createClass({
});

return (
<div className="col-sm-4">
<div className="col-sm-4 overflow-static">
<FormGroupComponent className={portFieldClassSet}
fieldId={`${fieldsetId}.${i}.port`}
label={fieldLabel}
Expand Down

0 comments on commit 4a685e1

Please sign in to comment.