this should cause tabs to be draggable

This commit is contained in:
Justin Palmer
2013-02-08 10:04:54 -08:00
committed by Nathan Sobo
parent ecb21964f7
commit 2d968c11a1
2 changed files with 6 additions and 2 deletions

View File

@@ -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))

View File

@@ -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 {