Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 Table Row Height

$
0
0

Hello experts,

 

Has anyone had trouble with table rows being unnecessarily tall on the SAPUI5 table control?  There is a lot of vertical whitespace that I can't seem to get rid of:

 

2015-07-22 13_46_55- Hana Studio.png

I've changed the font size to 11px and resized the button icons, textviews and textfields to 20px, and set the top & bottom padding to 0, but the td size is still computing to a fairly large 36px.  I can manually set the td height to, say 20px, but that crops rows in other tables which may have larger controls such as textAreas.  I need the page to derive the td size based on the size of the child controls, but without all the extra padding.

 

Here's my CSS related to this:

 

.sapUiTableCell {  padding: 0px 5px 0px 5px !important;
}
.sapUiTableTr>td {  padding-top: 1px !important;  padding-bottom: 1px !important;
}
.sapUiTableCell>.sapUiTv,
.sapUiTableCell>.sapUiTf {  font-weight: normal;  font-size: 11px;  height: 20px;  padding: 0 5px 0 5px;
}
.sapUiTableCell .sapUiBtn>span.sapUiBtnIco {  font-size: 14px !important;  line-height: 12px !important;  margin-top: 0px !important;
}
.sapUiTableColCell>.sapUiLbl,
.sapUiTableColCell>.sapMLabel {  font-weight: bold;  font-size: 11px;
}

Thanks,

Andy


Viewing all articles
Browse latest Browse all 6178

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>