row with empty fields disappears

row with empty fields disappears

sagimannsagimann Posts: 18Questions: 9Answers: 0

hi, I am using DTE, based on the inline editing.
my row may contain empty fields initially ,I want to let the user go do something else and go back to the table later.
but when the table has one empty row (all fields empty) and it loses focus, the row disappears almost completely (becomes about 10px in height), unless I click somewhere inside the narrow area that remains, in which case the row expands again and I can edit the fields inline.

how do I prevent the row from disappearing while the table loses focus?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Hi,

    The row is collapsing in height because (form the sounds of things) it is completely empty - i.e. there is no data in it. Possibly the easiest fix for this would be to set a min-height for the rows in your table using CSS:

    table.dataTable tbody tr {
       min-height: 22px; /* or whatever suits your application! */
    }
    

    Allan

  • sagimannsagimann Posts: 18Questions: 9Answers: 0

    thanks, actually min-height didn't work, but "height" did!

This discussion has been closed.