mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
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:
@@ -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()}")
|
||||
|
||||
|
||||
@@ -682,8 +682,6 @@ class Workspace extends Model
|
||||
#
|
||||
# Returns a {Panel}
|
||||
addModalPanel: (options={}) ->
|
||||
# TODO: remove these default classes. They are to supoprt existing themes.
|
||||
options.className ?= 'overlay from-top'
|
||||
@addPanel('modal', options)
|
||||
|
||||
addPanel: (location, options) ->
|
||||
|
||||
Reference in New Issue
Block a user