Make border width of field layers match textbox

We put a border on text boxes that have errors. This means that they
take up more space than the layers above them which don’t have borders.

This makes the layers that highlight the fields in a template misalign.

This commit adds a line to make the borders match, which fixes this.
This commit is contained in:
Chris Hill-Scott
2016-04-07 16:08:40 +01:00
parent dfd8540b54
commit 732109889e

View File

@@ -46,9 +46,10 @@
this.initialHeight = this.$textbox.height();
this.$backgroundMaskForeground.width(
this.$textbox.width()
);
this.$backgroundMaskForeground.css({
'width': this.$textbox.width(),
'border-width': this.$textbox.css('border-width')
});
this.$textbox
.trigger("input");