diff --git a/library/src/main/java/com/prolificinteractive/materialcalendarview/MaterialCalendarView.java b/library/src/main/java/com/prolificinteractive/materialcalendarview/MaterialCalendarView.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/prolificinteractive/materialcalendarview/MaterialCalendarView.java
+++ b/library/src/main/java/com/prolificinteractive/materialcalendarview/MaterialCalendarView.java
@@ -12,6 +12,7 @@ import android.util.TypedValue;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
+import android.widget.FrameLayout;
 import android.widget.LinearLayout;
 import android.widget.TextView;
 
@@ -43,7 +44,7 @@ import java.util.Locale;
  * @attr ref R.styleable.MaterialCalendarView_weekDayTextAppearance
  * @attr ref R.styleable.MaterialCalendarView_showOtherMonths
  */
-public class MaterialCalendarView extends LinearLayout {
+public class MaterialCalendarView extends FrameLayout {
 
     private final TextView title;
     private final DirectionButton buttonPast;
@@ -123,7 +124,6 @@ public class MaterialCalendarView extends LinearLayout {
     public MaterialCalendarView(Context context, AttributeSet attrs) {
         super(context, attrs);
 
-        setOrientation(VERTICAL);
         setClipChildren(false);
         setClipToPadding(false);
Changed super class to be FrameLayout