Make ‘edit template’ textboxes the same width

This involves:
- removing the hard coded width on any textbox that does placeholder
  highlighting
- adding JS to make sure that the extra layers on top of the textbox inherit
  the width of the textbox that the user types in (so the layers don’t get
  misaligned)

Keeping the textboxes at 2/3 width for consistency with how wide the messages
are on the ‘manage templates’ page.
This commit is contained in:
Chris Hill-Scott
2016-02-08 09:59:04 +00:00
parent 4338bc9aaf
commit d1a7c8ef39
2 changed files with 5 additions and 2 deletions

View File

@@ -23,6 +23,10 @@
.on("input", this.update)
.on("scroll", this.maintainScrollParity);
this.$backgroundMaskForeground.width(
this.$textbox.width()
);
this.$textbox
.trigger("input");