File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/spright-components/src/chat/input Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export class ChatInput extends mixinErrorPattern(FoundationElement) {
6060 @observable
6161 public scrollbarWidth = - 1 ;
6262
63- private static readonly maxContentLines = 6 ;
6463 private resizeObserver ?: ResizeObserver ;
6564 private updateScrollbarWidthQueued = false ;
6665
@@ -199,7 +198,7 @@ export class ChatInput extends mixinErrorPattern(FoundationElement) {
199198 const lineHeight = parseFloat ( computedStyle . lineHeight ) ;
200199 const paddingTop = parseFloat ( computedStyle . paddingTop ) ;
201200 const paddingBottom = parseFloat ( computedStyle . paddingBottom ) ;
202- const maxHeight = ChatInput . maxContentLines * lineHeight
201+ const maxHeight = lineHeight * 6
203202 + paddingTop
204203 + paddingBottom ;
205204
You can’t perform that action at this time.
0 commit comments