Commits

Anonymous committed c61fab2

fix

Comments (0)

Files changed (5)

coffee/index.coffee

     return 1
 
 enableTextareaTabInsertion = (t, evt)->
+    self = $ t
+    now_top = self.scrollTop()
     kc =  if evt.which then evt.which else evt.keyCode
     isSafari = navigator.userAgent.toLowerCase().indexOf('safari') != -1
 
                     se += offset
         #setTimeout("var t=$('" + t.class + "'); t.focus(); t.setSelectionRange(" + ss + ", " + se + ");", 0)
         t.setSelectionRange(ss,se)
+        self.scrollTop(now_top)
         false
 
 save = ->
 import _env
 
 __HASH__ =  {
-<<<<<<< local
-    "reset.css" : '4yUW2pgRTE8SngskVbqJRQ.css', #reset
-    "history.css" : 'dz1pTmLBl2PxHHBYVXfBIg.css', #history
-    "index.css" : 'PIu7msIjn26bZ5CeHDpLtA.css', #index
-=======
-    "index.css" : 'FL0J2KpmnwFwzjUyEhy3RA.css', #index
->>>>>>> other
+    "index.css" : '825Y3Esrl5wkcYPqU7kIjA.css', #index
     "base.css" : 'dEnughKoGCBkAXRcphq2pg.css', #base
     "help.css" : 'b4rnmKfIPNYONWS0TO5qyA.css', #help
     "reset.css" : '4yUW2pgRTE8SngskVbqJRQ.css', #reset
-    "history.css" : 'MOhUiGd4Ea2_ro5f3RaV7A.css', #history
+    "history.css" : 'dz1pTmLBl2PxHHBYVXfBIg.css', #history
 }
 
 
 overflow:hidden;
 padding:0px 26px  0 49px;
 }
+/*
 #main{
 padding: 0 0 0 40px;
 overflow:hidden;
 height:100%;
 }
+*/
 #left{
 float:left;
 left:-64px;
 margin-left:-100%;
 position:relative;
 }
+/*
 .more{
 display:block;
 position:absolute;
 background:url(img/more.png) no-repeat center center transparent;
 cursor:pointer;
 }
+*/
 #txt{
     text-shadow:1px 1px 1px #fff;
     font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
     position: absolute;
     width: 67px;
     margin-bottom: 23px;
-    margin-left: 26px;
+    margin-left: 17px;
     cursor:pointer;
 }
 .more:hover{
-margin-left:29px;
+margin-left:21px;
 }
 import _env
 
 __HASH__ =  {
-<<<<<<< local
-    "index.js" : 'W-bwYSf46yCwkJycp4IpZA.js', #index
-=======
-    "base.js" : 'YF6cB3emWJXHzYXMgpBHZA.js', #base
+    "base.js" : 'ZmKE7RScKu03QCIA4YVbgQ.js', #base
     "cookie.js" : '_Lb6EAwJZk7RNUjbJJmXFw.js', #cookie
-    "index.js" : 'NcWj79NUREwGbNj0wiyojg.js', #index
-    "all.js" : 'WycLqh_xke0gbzSuVgxzkQ.js', #all
+    "index.js" : '3qSAB17e0XfX2HnVt_94Sw.js', #index
+    "all.js" : 'L7bpd9RsP_cslOgSz1U2mA.js', #all
     "history.js" : 'FHTxqtEHu0xrCgEpevJHYA.js', #history
     "paging.js" : 'HV6PX0oDIW5R2pqlIMActw.js', #paging
->>>>>>> other
     "ext.js" : 'fYbDzFtJEhehMZhJPy1i6Q.js', #ext
-<<<<<<< local
-    "cookie.js" : '_Lb6EAwJZk7RNUjbJJmXFw.js', #cookie
-    "base.js" : 'ZmKE7RScKu03QCIA4YVbgQ.js', #base
-    "history.js" : 'FHTxqtEHu0xrCgEpevJHYA.js', #history
-    "all.js" : 'L7bpd9RsP_cslOgSz1U2mA.js', #all
-    "paging.js" : 'HV6PX0oDIW5R2pqlIMActw.js', #paging
-=======
->>>>>>> other
 }
 
 
   };
 
   enableTextareaTabInsertion = function(t, evt) {
-    var full_indented_line, isSafari, kc, num_lines, offset, range, se, sel, shft, ss, starts_with_tab, stored_range, ta_val, tab, tab_regexp, tablen, was_tab;
+    var full_indented_line, isSafari, kc, now_top, num_lines, offset, range, se, sel, self, shft, ss, starts_with_tab, stored_range, ta_val, tab, tab_regexp, tablen, was_tab;
+    self = $(t);
+    now_top = self.scrollTop();
     kc = evt.which ? evt.which : evt.keyCode;
     isSafari = navigator.userAgent.toLowerCase().indexOf('safari') !== -1;
     if (kc === 9 || (isSafari && kc === 25)) {
         }
       }
       t.setSelectionRange(ss, se);
+      self.scrollTop(now_top);
       return false;
     }
   };