mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	scrolling inside tree fixed
This commit is contained in:
		
							
								
								
									
										1
									
								
								TODO
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								TODO
									
									
									
									
									
								
							| @@ -1,4 +1,3 @@ | |||||||
| - some features (recent notes, linking to notes) don't work well with cloned notes |  | ||||||
| - when jumping to notes, tree does not scroll | - when jumping to notes, tree does not scroll | ||||||
| - logout detection | - logout detection | ||||||
| - conflict detection | - conflict detection | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ | |||||||
|       <div class="hide-toggle" style="width: 300px; height: 100%; float: left;"> |       <div class="hide-toggle" style="width: 300px; height: 100%; float: left;"> | ||||||
|         <button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button> |         <button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button> | ||||||
|  |  | ||||||
|         <div id="tree" style="overflow: scroll; height: 100%;"> |         <div id="tree"> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| $(function() { | $(function() { | ||||||
|     $(window).resize(function() { |     $(window).resize(function() { | ||||||
|         $('div#tree').height($(window).height() - $('div#tree').offset().top); |         $('ul.fancytree-container').height($(window).height() - $('ul.fancytree-container').offset().top - 10); | ||||||
|         $('div.note-editable').height($(window).height() - $('div.note-editable').offset().top); |         $('div.note-editable').height($(window).height() - $('div.note-editable').offset().top); | ||||||
|     }); |     }); | ||||||
|     $(window).resize(); |     $(window).resize(); | ||||||
|   | |||||||
| @@ -176,7 +176,7 @@ function addRecentNote(noteId, noteTitle) { | |||||||
|             // if it's already there, remove the note |             // if it's already there, remove the note | ||||||
|             recentNotes = recentNotes.filter(note => note.noteId !== noteId); |             recentNotes = recentNotes.filter(note => note.noteId !== noteId); | ||||||
|  |  | ||||||
|             // console.log("added after " + (new Date().getTime() - origDate.getTime())); |             console.log("added after " + (new Date().getTime() - origDate.getTime())); | ||||||
|  |  | ||||||
|             recentNotes.unshift({ |             recentNotes.unshift({ | ||||||
|                 noteId: noteId, |                 noteId: noteId, | ||||||
|   | |||||||
| @@ -24,3 +24,10 @@ | |||||||
|     padding: 0; |     padding: 0; | ||||||
|     margin: 0; |     margin: 0; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | ul.fancytree-container { | ||||||
|  |   width: 290px; | ||||||
|  |   height: 400px; | ||||||
|  |   overflow: auto; | ||||||
|  |   position: relative; | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user