I've got a div table being built by a ui:repeat
inside a div, but it is not staying within the borders of the containing div.
The goal is for the containing div to restrict the size and have a scrollbar to see the remainder of the table inside.
Base on my research, it should just be an overflow-y: auto
in the css for the containing div, but the excess pushes down the page no matter how I load the information.
Layout snippet:
<div id="idCenterRow">
<div id="idCenterRowMain">
<h:form id="idForm" enctype="multipart/form-data" prependId="false">
<ui:include src="#{Bean1.Content()}"></ui:include>
</h:form>
</div>
</div>
Content Page:
<p id="idCenterContent">
This is some text.
<div id="idTableMyList">
<!--<c:set value="#{Bean2.setPersonalList(Bean3)}" var="tickle"></c:set>-->
<ui:repeat var="x" value="#{Bean2.pl}" size="#{Bean2.getPLSize()}" varStatus="myVarStatus">
<div class="classTableMyListRow">
<div class="classTableMyListRowData"><h:outputText class="classTableMyListRowDataText" value="#{myVarStatus.index+1}" /></div>
<div class="classTableMyListRowData"><h:outputText class="classTableMyListRowDataText" value="#{x[0]}" /></div>
<div class="classTableMyListRowData"><img class="classTableMyListRowDataPicture" src="#{Bean2.path}#{Bean2.folder}#{x[1]}" /></div>
</div>
</ui:repeat>
</div>
</p>
CSS:
#idCenterRow
{
height: 70%;
height: 85vh;
max-height: 85%;
max-height: 85vh;
width: 100%;
width: 100vw;
max-width: 100%;
max-width: 100vw;
border: 0px solid #e9f413;
vertical-align: top;
display: table-row;
}
#idCenterRowMain
{
height: 100%;
height: 85vh;
max-height: 100%;
max-height: 85vh;
width: 70%;
width: 70vw;
max-width: 70%;
max-width: 70vw;
margin: 0px;
padding: 0px;
border: 1px solid #13ecf4;
vertical-align: top;
overflow-y: scroll;
display: table-cell;
vertical-align: top;
}
#idTableMyList
{
height: 80%;
height: 80vh;
max-height: 80%;
max-height: 80vh;
width: 70%;
width: 70vw;
max-width: 70%;
max-width: 70vw;
text-align: center;
margin: 0px;
padding: 0px;
border-spacing: 0px;
border-collapse: collapse;
color: #aaaaaa;
overflow: auto;
border: 1px solid #f702f7;
vertical-align: top;
display: table;
}
.classTableMyListRow
{
height: 75%;
height: 50vh;
max-height: 75%;
max-height: 50vh;
width: 100%;
width: 70vw;
max-width: 100%;
max-width: 70vw;
border: 1px solid #f702f7;
display: table-row;
}
.classTableMyListRowData
{
height: 100%;
height: 50vh;
max-height: 100%;
max-height: 50vh;
width: auto;
border: 1px solid #f702f7;
vertical-align: top;
display: table-cell;
}
.classTableMyListRowDataText
{
color: #aaaaaa;
}
.classTableMyListRowDataPicture
{
height: 100%;
height: 50vh;
max-height: 100%;
max-height: 50vh;
//width: 35%;
//width: 35vw;
width: auto;
//max-width: 35%;
//max-width: 35vw;
object-fit: fill;
-o-object-fit: fill;
-moz-object-fit: fill;
margin: auto;
display: block;
}