refactored notes rendering
This commit is contained in:
		| @@ -70,7 +70,8 @@ | ||||
|   h = calc.max( | ||||
|     h, | ||||
|     ..seq.linked-notes.map(n => { | ||||
|       note.get-size(n).height / 2 | ||||
|       let nt = ctx.notes.at(n.id) | ||||
|       note.get-size(nt).height / 2 | ||||
|     }) | ||||
|   ) | ||||
|   ctx.y -= h | ||||
| @@ -354,7 +355,8 @@ | ||||
|     end-info.y = calc.min( | ||||
|       end-info.y, | ||||
|       y0 - calc.max(..seq.linked-notes.map(n => { | ||||
|         let m = note.get-size(n) | ||||
|         let nt = ctx.notes.at(n.id) | ||||
|         let m = note.get-size(nt) | ||||
|         return m.height / 2 | ||||
|       })) | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user