Commit ab502ce7 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

improved responsivness

parent 95c0a51b
......@@ -148,13 +148,7 @@ public class ProjectOverviewBean implements Serializable {
return this.allProjects;
}
public String getHeight(){
if(this.allProjects.isEmpty()){
return "50px";
}else{
return ((Math.ceil(this.allProjects.size()) /2) * 435 ) + "px";
}
}
@PostConstruct
public void postConstruct() {
......@@ -248,6 +242,15 @@ public class ProjectOverviewBean implements Serializable {
}
@Deprecated
public String getHeight(){
if(this.allProjects.isEmpty()){
return "50px";
}else{
return ((Math.ceil(this.allProjects.size()) /2) * 435 ) + "px";
}
}
//////////////////////////////////////////////////////////////////////////////////////////
///////////////////// DUPLICATE CODE FROM IDEAINPUTBEAN //////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
......
......@@ -18,9 +18,8 @@
<f:metadata>
<f:event type="preRenderView" listener="#{projectOverviewBean.onPageLoad}"/>
</f:metadata>
<!-- Main View -->
<div id="project-overview-grid" style="height:#{projectOverviewBean.getHeight()}">
<div id="project-overview-grid">
<h:form id="projectoverviewform">
<ui:repeat value="#{projectOverviewBean.getAllProjects()}" var="entry">
<div class="w3-half w3-container w3-padding-small">
......@@ -51,13 +50,13 @@
</div>
<!-- Options -->
<ui:fragment rendered="#{projectOverviewBean.isAdmin()}">
<div class="w3-bar w3-light-grey w3-padding-small">
<div class="w3-bar w3-light-grey w3-padding-small">
<ui:fragment rendered="#{projectOverviewBean.isAdmin()}">
<button class="w3-button w3-large w3-circle w3-xlarge w3-ripple w3-blue" style="float: right;"
onclick="document.getElementById('projectInputModal').style.display='block'"> + </button>
</ui:fragment>
</div>
</ui:fragment>
<!-- Input Modal -->
<div id="projectInputModal" class="w3-modal">
......
Manifest-Version: 1.0
Built-By: englmeier
Build-Jdk: 1.8.0_144
Build-Jdk: 1.8.0_151
Created-By: Maven Integration for Eclipse
#Generated by Maven Integration for Eclipse
#Thu Oct 19 09:25:23 CEST 2017
#Thu Oct 26 11:21:51 CEST 2017
version=1.0.0
groupId=JSFProjectOverview
m2e.projectName=JSFProjectOverview
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment