Text align vertically in data grid cell

Why does the text in data grid cell not centered vertically when i reduce the height of row? I have set the padding to 0 in style.csss

SCSS file :
.helium .data-grid-planner .v-grid .v-grid-row td{
text-align: center;
border-right: 0.5px solid #e8edec ;
height: 20px;
font-size: 10px ;
margin: 0;
padding: 0;
}

cuba support text allign

Hi,

Set line-height to the same value as height. Also, pay attention that row height must be defined either using the bodyRowHeight attribute via XML or setBodyRowHeight() via Java API instead of using CSS.

Regards,
Gleb

Alright, it’s working, thank you for your help.
Regards