mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
this should cause tabs to be draggable
This commit is contained in:
committed by
Nathan Sobo
parent
ecb21964f7
commit
2d968c11a1
@@ -33,6 +33,9 @@ class Tabs extends View
|
||||
@editor.destroyEditSessionIndex(index)
|
||||
false
|
||||
|
||||
@on 'dragstart', '.tab', (e) ->
|
||||
console.log 'TAB DRAGGED', e
|
||||
|
||||
addTabForEditSession: (editSession) ->
|
||||
@append(new Tab(editSession, @editor))
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
.tabs {
|
||||
font: caption;
|
||||
-webkit-user-select: none;
|
||||
display: -webkit-box;
|
||||
-webkit-box-align: center;
|
||||
}
|
||||
|
||||
.tab {
|
||||
-webkit-user-select: none;
|
||||
-webkit-user-drag: element;
|
||||
cursor: default;
|
||||
-webkit-box-flex: 2;
|
||||
position: relative;
|
||||
width: 175px;
|
||||
max-width: 175px;
|
||||
min-width: 40px;
|
||||
@@ -16,6 +16,7 @@
|
||||
text-shadow: -1px -1px 0 #000;
|
||||
font-size: 11px;
|
||||
padding: 5px 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tab.active {
|
||||
|
||||
Reference in New Issue
Block a user