Closes #274, autosave in notes pane puts cursor at top of pane
This commit is contained in:
parent
5028880d38
commit
bbedd3bd93
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
||||||
<property name="note" onget="return this.noteRef;">
|
<property name="note" onget="return this.noteRef;">
|
||||||
<setter>
|
<setter>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
var scrollPos = this.id('noteField').inputField.scrollTop;
|
||||||
|
|
||||||
this.noteRef = val;
|
this.noteRef = val;
|
||||||
|
|
||||||
if(this.note.getSource())
|
if(this.note.getSource())
|
||||||
|
@ -35,6 +37,8 @@
|
||||||
|
|
||||||
this.id('noteField').value = this.note.getNote();
|
this.id('noteField').value = this.note.getNote();
|
||||||
this.id('links').item = this.note;
|
this.id('links').item = this.note;
|
||||||
|
|
||||||
|
this.id('noteField').inputField.scrollTop = scrollPos;
|
||||||
]]>
|
]]>
|
||||||
</setter>
|
</setter>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue