Skip to content

Commit 1489a79

Browse files
authored
Merge pull request #168 from dailybruin/scroll-breaking-feed
Scroll Box on Breaking News
2 parents d2e800c + 20db610 commit 1489a79

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

layouts/Breaking/index.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,14 @@ export default class BreakingLayout extends React.Component {
206206
just put the position to fixed when the top of the div (from getBoundingClientRect)
207207
208208
*/}
209-
<div id="one" style={{position: "sticky", top: "70px"}}>
209+
<div id="one" style={{
210+
position: "sticky",
211+
top: "70px",
212+
maxHeight: "calc(100vh - 70px)",
213+
overflowY: "scroll",
214+
scrollbarWidth: "none",
215+
msOverflowStyle: "none"
216+
}}>
210217
{this.props.eventSummary && utilities.buildArticleCard(this.props.eventSummary, "breakingOverview")}
211218
</div>
212219
</div>

0 commit comments

Comments
 (0)