Skip to content

Commit

Permalink
[ZEPPELIN-6096] Cursor appears cut off in Notebook editor
Browse files Browse the repository at this point in the history
### What is this PR for?

https://github.com/user-attachments/assets/6204b6f5-409e-4cd1-8901-eb09114e9ded

Steps to reproduce:
1. Make a new Paragraph.
2. Refresh the page.
3. Click on the paragraph to make the cursor blink.

[How to solve]
https://github.com/apache/zeppelin/blob/bdf5b067b6bdde2614b98a6a3f6a7b5d6637e57c/zeppelin-web-angular/src/app/pages/workspace/notebook/paragraph/code-editor/code-editor.component.ts#L62

Set default value of editor's height

### What type of PR is it?
Bug Fix

### Todos

### What is the Jira issue?
* [[ZEPPELIN-6096](https://issues.apache.org/jira/browse/ZEPPELIN-6096)]

### How should this be tested?

### Screenshots (if appropriate)

### Questions:
* Does the license files need to update? N
* Is there breaking changes for older versions? N
* Does this needs documentation? N

Closes #4873 from dididy/fix/ZEPPELIN-6096.

Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit cd31c31)
Signed-off-by: Cheng Pan <chengpan@apache.org>
  • Loading branch information
dididy authored and pan3793 committed Oct 16, 2024
1 parent ad4ced6 commit 27fd16f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class NotebookParagraphCodeEditorComponent implements OnChanges, OnDestro
@Output() readonly editorFocus = new EventEmitter<void>();
private editor: IStandaloneCodeEditor;
private monacoDisposables: IDisposable[] = [];
height = 0;
height = 18;
interpreterName: string;

autoAdjustEditorHeight() {
Expand Down

0 comments on commit 27fd16f

Please sign in to comment.