Skip to content

Commit

Permalink
fix(ModelessOverlay): allow vertical scrolling (patternfly#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
cben authored and jeff-phillips-18 committed Nov 6, 2018
1 parent 3400a44 commit 93ed571
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

.modal-content {
height: ~'calc(100vh - @{navbar-pf-height})';
display: flex;
flex-direction: column;

.modal-body {
flex-grow: 1;
overflow: hidden auto;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

.modal-content {
height: calc(100vh - #{$navbar-pf-height});
display: flex;
flex-direction: column;

.modal-body {
flex-grow: 1;
overflow: hidden auto;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@ export class MockModalManager extends React.Component {
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
<div className="form-group">
<label className="col-sm-3 control-label" htmlFor="textInput4">
Field Four
</label>
<div className="col-sm-9">
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
<div className="form-group">
<label className="col-sm-3 control-label" htmlFor="textInput5">
Field Five
</label>
<div className="col-sm-9">
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
<div className="form-group">
<label className="col-sm-3 control-label" htmlFor="textInput6">
Field Six
</label>
<div className="col-sm-9">
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
</form>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,30 @@ export class MockModelessManager extends React.Component {
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
<div className="form-group">
<label className="col-sm-3 control-label" htmlFor="textInput4">
Field Four
</label>
<div className="col-sm-9">
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
<div className="form-group">
<label className="col-sm-3 control-label" htmlFor="textInput5">
Field Five
</label>
<div className="col-sm-9">
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
<div className="form-group">
<label className="col-sm-3 control-label" htmlFor="textInput6">
Field Six
</label>
<div className="col-sm-9">
<input type="text" id="textInput3" className="form-control" />
</div>
</div>
</form>
);

Expand Down

0 comments on commit 93ed571

Please sign in to comment.