Skip to content

Commit 5ecb2fd

Browse files
committed
65150: Fix greater than 9 digits line number hidden bug in mobile devices
1 parent baeddcd commit 5ecb2fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

static/jquery-linedtextarea.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
var textarea = $(this);
2525

2626
/* Wrap the text area in the elements we need */
27-
textarea.wrap("<div class='linedtextarea' style='height:100%; overflow:hidden'></div>");
28-
textarea.width("97%");
29-
textarea.parent().prepend("<div class='lines' style='width:3%'></div>");
27+
textarea.wrap("<div class='linedtextarea' style='height:100%; overflow:hidden;display:flex;'></div>");
28+
textarea.parent().prepend("<div class='lines' style='height: max-content;'></div>");
3029
var linesDiv = textarea.parent().find(".lines");
3130

3231
var scroll = function(tn) {

0 commit comments

Comments
 (0)