misc small impovements

This commit is contained in:
Curtis SerVaas
2014-10-10 10:59:42 -04:00
parent b159a8f99c
commit a90d168612
4 changed files with 14 additions and 5 deletions
@@ -38,7 +38,7 @@
// keyup is required for IE to properly reset height when deleting text
this.$element.on('input keyup', function(event) {
console.log("scrollHeight=" + this.scrollHeight + "diff=" + diff);
// console.log("scrollHeight=" + this.scrollHeight + "diff=" + diff);
$(this)
.height(0)
.height(this.scrollHeight - diff);
+1 -1
View File
@@ -31,6 +31,6 @@
list-style: none;
}
.root li.editing {
.root li.editing > .hoverWrap > textarea{
outline: 1px dotted black;
}
+1
View File
@@ -11,6 +11,7 @@
ul.navbar-right {
list-style-type: none;
display: inline;
/*position: fixed; */
}
.navbar-right > li {
position: relative;
+11 -3
View File
@@ -66,14 +66,11 @@
<script src="js/backbone/router.js"></script>
<body>
<div class='myNav'>
<a class='logoLink'>CoNote</a>
<textarea id='searchBar'> </textarea>
<a class='btn btn-default'><i class='icon-star'></i></a>
<a class="clickStatus">Uninitialized</a>
<ul class='navbar-right'>
<li><a class='toggleSidebar'>Toggle sideBar</a></li>
@@ -119,6 +116,17 @@
$(function(){
$('textarea').textareaAutoExpand();
});
var width;
$(window).resize(function() {
width = $(window).width();
if(width < 730){
$(".navbar-right").hide();
}
if(width > 730){
$(".navbar-right").show();
}
});
</script>
</html>