mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-10 22:54:45 +08:00
fix(activity-bar): Fix activity bar resizing
This commit is contained in:
parent
567acfb14b
commit
c21f992ed2
1 changed files with 2 additions and 6 deletions
|
@ -35,8 +35,8 @@ ActivityBar = React.createClass
|
|||
render: ->
|
||||
<ResizableRegion className="activity-bar"
|
||||
initialHeight={@state.height}
|
||||
handle={ResizableRegion.Handle.Top}
|
||||
onResize={@_onTrayResized}>
|
||||
minHeight={ActivityBarClosedHeight}
|
||||
handle={ResizableRegion.Handle.Top}>
|
||||
<div className="controls">
|
||||
{@_caret()}
|
||||
<div className="queue-status">
|
||||
|
@ -140,10 +140,6 @@ ActivityBar = React.createClass
|
|||
@setState(section: section)
|
||||
@_onShow()
|
||||
|
||||
_onTrayResized: (height) ->
|
||||
height = ActivityBarClosedHeight if height < 80
|
||||
@setState(height: height)
|
||||
|
||||
_onFeedback: ->
|
||||
user = NamespaceStore.current().name
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue