mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
ensure highlighting div size always matches the relevant textarea
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
`))
|
||||
.on("input", this.update);
|
||||
|
||||
$(window).on("resize", this.resize);
|
||||
|
||||
visibleTextbox = this.$textbox.clone().appendTo("body").css({
|
||||
position: 'absolute',
|
||||
visibility: 'hidden',
|
||||
@@ -47,7 +49,7 @@
|
||||
|
||||
this.resize = () => {
|
||||
|
||||
this.$background.width(this.$textbox.outerWidth());
|
||||
this.$background.width(this.$textbox.width());
|
||||
|
||||
this.$textbox.height(
|
||||
Math.max(
|
||||
|
||||
Reference in New Issue
Block a user