title: Primefaces Calendar Inline Mode Wrong Size
body: <p>Primefaces Calender with inline mode shows in bugged way:</p>
  
  <p><img src="https://i.stack.imgur.com/jwkGI.jpg" alt="primefaces Calendar"></p>
  
  <p>Code:<br>
  xHTML</p>
  
  <pre><code>&lt;p:tab title="Logs"&gt;
  &lt;p:panelGrid columns="2" cellpadding="2" styleClass="logsGrid"&gt;
  &lt;p:accordionPanel id="accordionLogs" styleClass="logsAccordion"&gt;
  &lt;p:tab title="Log1"&gt;&lt;/p:tab&gt;
  &lt;p:tab title="Log2"&gt;&lt;/p:tab&gt;
  &lt;/p:accordionPanel&gt;
  &lt;p:calendar value="#{dateBean.date}" mode="inline" styleClass="logsCalendar"&gt;
  &lt;p:ajax event="dateSelect" listener="#{dateBean.handleDateSelect}" update=":growlMain" /&gt;
  &lt;/p:calendar&gt;
  &lt;/p:panelGrid&gt;
  &lt;/p:tab&gt;
  </code></pre>
  
  <p>class:</p>
  
  <pre><code>package com.swql.sprint;
  
  import java.text.SimpleDateFormat;
  import java.util.Date;
  
  import javax.faces.application.FacesMessage;
  import javax.faces.bean.ManagedBean;
  import javax.faces.context.FacesContext;
  
  import org.primefaces.event.SelectEvent;
  
  @ManagedBean
  public class DateBean {
  
      private Date date;
  
      public Date getDate() {
          return date;
      }
  
      public void setDate(Date date) {
          this.date = date;
      }
  
      public void handleDateSelect(SelectEvent event) {
          Date date = (Date) event.getObject();
          FacesMessage msg = null;
          SimpleDateFormat format = new SimpleDateFormat("d/M/yyyy");
          msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Date Picked", format.format(date));
          FacesContext.getCurrentInstance().addMessage(null, msg);
          }
  
  }
  </code></pre>
  
  <p>How to fix this issue?</p>
  
  <p>€dit:</p>
  
  <p><strong>Already figured out the reason:
  The p:panelGrid somehow resizes the content of the calendar.
  Maybe a fix would be to put the calendar into some other container.
  Will try and report.</strong></p>
  
  <p>€dit2:</p>
  
  <p><strong>Putting the Calendar into a panel doesn't fix the issue.</strong></p>