Skip to content

Commit bf5e278

Browse files
authored
Merge branch 'master' into 2214
2 parents e8a29ee + 011eae8 commit bf5e278

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8181

8282
### Added
8383

84+
- Fix [#2307](https://github.com/Microsoft/BotFramework-WebChat/issues/2307). Added options to hide ScrollToEnd button, by [@nt-7](https://github.com/nt-7) in PR [#2332](https://github.com/Microsoft/BotFramework-WebChat/pull/2332)
8485
- Added bubble nub and style options, by [@compulim](https://github.com/compulim), in PR [#2137](https://github.com/Microsoft/BotFramework-WebChat/pull/2137)
8586
- Fix [#1808](https://github.com/microsoft/BotFramework-WebChat/issues/1808). Added documentation on activity types, by [@corinagum](https://github.com/corinagum) in PR [#2228](https://github.com/microsoft/BotFramework-WebChat/pull/2228)
8687
- Make thumbnails when uploading GIF/JPEG/PNG and store it in `channelData.attachmentThumbnails`, by [@compulim](https://github.com/compulim), in PR [#2206](https://github.com/microsoft/BotFramework-WebChat/pull/2206), requires modern browsers with following features:

packages/component/src/BasicTranscript.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const BasicTranscript = ({
116116
</ul>
117117
</SayComposer>
118118
</ScrollToBottomPanel>
119-
<ScrollToEndButton />
119+
{!styleSet.options.hideScrollToEndButton && <ScrollToEndButton />}
120120
</div>
121121
);
122122
};
@@ -135,7 +135,10 @@ BasicTranscript.propTypes = {
135135
groupTimestamp: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.number.isRequired]),
136136
styleSet: PropTypes.shape({
137137
activities: PropTypes.any.isRequired,
138-
activity: PropTypes.any.isRequired
138+
activity: PropTypes.any.isRequired,
139+
options: PropTypes.shape({
140+
hideScrollToEndButton: PropTypes.bool.isRequired
141+
}).isRequired
139142
}).isRequired,
140143
webSpeechPonyfill: PropTypes.shape({
141144
speechSynthesis: PropTypes.any.isRequired,

packages/component/src/Styles/defaultStyleOptions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ const DEFAULT_OPTIONS = {
6464
rootHeight: '100%',
6565
rootWidth: '100%',
6666

67+
// Scroll to end button
68+
hideScrollToEndButton: false,
69+
6770
// Send box
6871
hideSendBox: false,
6972
hideUploadButton: false,

0 commit comments

Comments
 (0)