Commits

Anonymous committed 8aa37c5

fix resize.

  • Participants
  • Parent commits fab22e6

Comments (0)

Files changed (5)

static/css/src/layout.css

 textarea {
     width: 99%;
     border: 1px solid;
-    height: 450px;
+    height: 300px;
     z-index: 0;
 }
 
 
 /* resizer */
 div.grippie {
-    position: absolute;
-    cursor: se-resize; 
-	width: 13px; 
-	height: 13px; 
-	right: 0px; 
-	bottom: 13px;
-	background: url(../../images/resize.gif) no-repeat 0 0;
-}
-.grippie {
-    background-position: 50% 50%;
-}
+    background:#E9E9E9 url(../../images/resize2.gif) no-repeat scroll 50% 50%;
+min-height:3px;
+    height: 3px;
+    }
+

static/images/resize2.gif

Added
New image

static/js/src/friendpaste.js

         this.editing = false;
         this.show_history = false;
         
-        
-       
-        
-        
-        /*if(!base2.detect("webkit"))
-            new Resizeable("#paste_snippet");*/
+        if(!base2.detect("webkit"))
+            new Resizeable("#paste_snippet");
 
         this.setSettings();
         

static/js/src/resizeable.js

         document.addEventListener("mousemove", moveListener, false);
         document.addEventListener("mouseup", upListener, false);
     }
-});
+});

templates/paste/index.html

 {% endif %}
 
 <script type="text/javascript">
-    document.querySelector("#paste_snippet").focus()
+    if(!base2.detect("webkit"))
+            new Resizeable("#paste_snippet");
+    document.querySelector("#paste_snippet").focus();
 </script>
 {% endblock %}