fix an issue with sticky_kit where input fields and textareas would blur on recalc. auto resize the notes textarea since if it sticks to the bottom it can not be properly resized
This commit is contained in:
parent
0364bf4913
commit
a1b35fb7d1
@ -64,8 +64,9 @@ li:hover .widget-nav-pills-icons {
|
|||||||
#note-text {
|
#note-text {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
resize: vertical;
|
resize: none;
|
||||||
min-height: 250px;
|
min-height: 250px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* saved searches */
|
/* saved searches */
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<header><?php if(x($page,'header')) echo $page['header']; ?></header>
|
<header><?php if(x($page,'header')) echo $page['header']; ?></header>
|
||||||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><?php if(x($page,'nav')) echo $page['nav']; ?></nav>
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><?php if(x($page,'nav')) echo $page['nav']; ?></nav>
|
||||||
<main>
|
<main>
|
||||||
<aside id="region_1"><div id="left_aside_wrapper"><?php if(x($page,'aside')) echo $page['aside']; ?></div></aside>
|
<aside id="region_1"><div id="left_aside_spacer"><div id="left_aside_wrapper"><?php if(x($page,'aside')) echo $page['aside']; ?></div></div></aside>
|
||||||
<section id="region_2"><?php if(x($page,'content')) echo $page['content']; ?>
|
<section id="region_2"><?php if(x($page,'content')) echo $page['content']; ?>
|
||||||
<div id="page-footer"></div>
|
<div id="page-footer"></div>
|
||||||
<div id="pause"></div>
|
<div id="pause"></div>
|
||||||
|
@ -18,7 +18,9 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
if($(window).width() > 767) {
|
if($(window).width() > 767) {
|
||||||
$('#left_aside_wrapper').stick_in_parent({
|
$('#left_aside_wrapper').stick_in_parent({
|
||||||
offset_top: $('nav').outerHeight(true)
|
offset_top: $('nav').outerHeight(true),
|
||||||
|
parent: '#region_1',
|
||||||
|
spacer: '#left_aside_spacer'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,10 @@
|
|||||||
var noteSaveTimer = null;
|
var noteSaveTimer = null;
|
||||||
var noteText = $('#note-text');
|
var noteText = $('#note-text');
|
||||||
|
|
||||||
$(document).ready(function(){
|
noteText.on('change keyup keydown paste cut', function () {
|
||||||
noteText.height(noteText[0].scrollHeight);
|
$(this).height(0).height(this.scrollHeight);
|
||||||
});
|
$(document.body).trigger("sticky_kit:recalc");
|
||||||
|
}).change();
|
||||||
|
|
||||||
$(document).on('focusout',"#note-text",function(e){
|
$(document).on('focusout',"#note-text",function(e){
|
||||||
if(noteSaveTimer)
|
if(noteSaveTimer)
|
||||||
|
Reference in New Issue
Block a user