Add legacy ‘from-top’ class at the view layer, not the model

This blends in to our approach with the other legacy panel classes.
This commit is contained in:
Nathan Sobo
2014-11-24 16:38:04 -07:00
parent 73763d3e41
commit 8cb0197638
2 changed files with 1 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class PanelContainerElement extends HTMLElement
panelElement = panel.getView()
panelElement.classList.add(@model.getLocation())
if @model.isModal()
panelElement.classList.add("overlay")
panelElement.classList.add("overlay", "from-top")
else
panelElement.classList.add("panel-#{@model.getLocation()}")