Browse Source

DIV-655: When new rows in fact sheet are created, initialize to correct hight and initilaze autoresize

pull/160/head
Benard Ebinu 8 years ago
parent
commit
3b148808b8
3 changed files with 4 additions and 2 deletions
  1. +1
    -1
      edivorce/apps/core/static/css/main.css
  2. +2
    -1
      edivorce/apps/core/static/css/main.scss
  3. +1
    -0
      edivorce/apps/core/static/js/main.js

+ 1
- 1
edivorce/apps/core/static/css/main.css
File diff suppressed because it is too large
View File


+ 2
- 1
edivorce/apps/core/static/css/main.scss View File

@ -163,7 +163,7 @@ input[type=number]::-webkit-outer-spin-button {
}
input, textarea {
height: 100%;
height: 25px;
width: 100%;
display: table-cell;
border: none;
@ -1521,6 +1521,7 @@ textarea {
display:inline-block;
padding: 5px 10px 5px 22px;
border-left:2px solid $brand-gold;
width: 100%;
}


+ 1
- 0
edivorce/apps/core/static/js/main.js View File

@ -779,6 +779,7 @@ var registerTableRowAddRemoveHandlers = function(settings) {
});
newRow.find('[data-sum="true"]').on('change', sumFieldOnChange);
newRow.find('[data-save_row="true"]').on('change', saveListControlRow);
newRow.find('textarea').autogrow({onInitialize: true});
$(settings.table_selector).find('tbody:first').append(newRow);


Loading…
Cancel
Save