The default rowsheight is 25. That’s too tall for me, so I changed it to 20.
So the rows are narrower, great, but the text is not vertically centered in the row anymore. It’s a couple of pixels too low. I would have thought that, if the widget were going to programmatically handle its row height, that it would also handle the centering of the text in its rows.
I could add some CSS, but the actual element that has its margin set is not classed at all; it is a bare div. The cells look like this:
<div class="jqx-grid-cell jqx-grid-cell-curo-widgets" style="overflow: hidden; position: absolute; height: 100%; left: 0px; z-index: 779; width: 128.45px; margin-left: 0px;"> <div style="overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin: 4px;">5033DF88C3E35</div></div>
(I lie. It actually does programmatically set the cell content margins; you can see it there in line 2: margin: 4px;. That’s done programmatically. It’s just that it doesn’t set it properly when you change rowheight and I don’t have access to that property.)
This works, but it’s ugly (if you’re using !important like this, you’re probably doing something wrong):
.jqx-grid-cell-curo-widgets > div{ margin: 1px 4px !important;}