       isOn: false
 
   updateHeight: (mode)->
-    height = if mode then 320 else 154
+    height = if mode then @bigHeight else @smallHeight
     @setHeight height
 
     # Defering the centering due to a mysterious bug

            change: (me, val) =>
              @updateHeight(val)
        ,
          name: "critical_high"
          fieldLabel: "Critical High"
        ,
          name: "warning_high"
          fieldLabel: "Warning High"
        ,
          name: "warning_low"
          fieldLabel: "Warning Low"
        ,
          name: "critical_low"
          fieldLabel: "Critical Low"
        ,
          xtype: "muletimefield"
          name: "period"
          fieldLabel: "Period"
        ,
          xtype: "muletimefield"
          name: "stale"
          fieldLabel: "Stale"
      ]

    @form = Ext.create "Ext.form.Panel",
      bodyPadding: 10
      trackResetOnLoad: true
      layout:

Ext.define "Muleview.view.AlertsEditor",
  extend: "Ext.window.Window"
  icon: "resources/default/images/alerts.png"
  modal: true
