refactor: resize function
removed: vault name in title bar
This commit is contained in:
parent
f1893552d3
commit
2edf906402
18
main.js
18
main.js
|
@ -1322,16 +1322,10 @@ function before(nb)
|
||||||
|
|
||||||
function resize()
|
function resize()
|
||||||
{
|
{
|
||||||
if (md.clientHeight >= md.scrollHeight) return;
|
if (md.clientHeight < md.scrollHeight)
|
||||||
|
|
||||||
//console.log("resize");
|
|
||||||
md.style.height = md.scrollHeight + 'px';
|
|
||||||
|
|
||||||
/*md.rows = (md.value.match(/\n/g) || []).length + 1;
|
|
||||||
while (md.scrollHeight > md.clientHeight)
|
|
||||||
{
|
{
|
||||||
md.rows *= 1.5;
|
md.style.height = md.scrollHeight + 'px';
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function putontop()
|
function putontop()
|
||||||
|
@ -1646,12 +1640,12 @@ function mainkeydownhandler()
|
||||||
|
|
||||||
function setwindowtitle()
|
function setwindowtitle()
|
||||||
{
|
{
|
||||||
document.title = currentvault + " -";
|
document.title = "";
|
||||||
if (currenttag)
|
if (currenttag)
|
||||||
{
|
{
|
||||||
document.title += " tag:" + currenttag + " -";
|
document.title += "[" + currenttag + "] -\xa0";
|
||||||
}
|
}
|
||||||
document.title += " " + currentnote.title;
|
document.title += currentnote.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ontitlechange()
|
function ontitlechange()
|
||||||
|
|
Loading…
Reference in New Issue