@@ -15,6 +15,7 @@ import $L from '@enact/i18n/$L';
1515import Button from '@enact/moonstone/Button' ;
1616import { connect } from 'react-redux' ;
1717import Notification from '@enact/moonstone/Notification' ;
18+ import classNames from 'classnames' ;
1819import PropTypes from 'prop-types' ;
1920import React , { Component } from 'react' ;
2021import Scroller from '@enact/moonstone/Scroller' ;
@@ -27,6 +28,7 @@ import css from './BookmarkManager.module.less';
2728class BookmarkManagerBase extends Component {
2829
2930 static propTypes = {
31+ alwaysShowBookmarks : PropTypes . bool ,
3032 browser : PropTypes . object ,
3133 data : PropTypes . array ,
3234 selectedIndices : PropTypes . array ,
@@ -85,7 +87,10 @@ class BookmarkManagerBase extends Component {
8587 }
8688
8789 render ( ) {
88- const { browser, data, hasSelection, ...rest } = this . props ;
90+ const
91+ { alwaysShowBookmarks, browser, data, hasSelection, ...rest } = this . props ,
92+ scrollerClass = classNames ( css . scroller , { [ css . shrinkHeight ] : alwaysShowBookmarks } ) ;
93+
8994 delete rest . selectedIndices ;
9095 delete rest . selectAllBookmarks ;
9196 delete rest . deselectAllBookmarks ;
@@ -114,7 +119,7 @@ class BookmarkManagerBase extends Component {
114119 </ Notification >
115120 {
116121 ( data . length > 0 ) ?
117- < Scroller horizontalScrollbar = "hidden" className = { css . list } >
122+ < Scroller horizontalScrollbar = "hidden" className = { scrollerClass } >
118123 < BookmarkList browser = { browser } />
119124 </ Scroller >
120125 :
0 commit comments