That difference is that I adjust the viewport position so the text at end of the document is displayed in the current visible rect (NSView.visibleRect).
thank you, let me summarize the approach:
receive an estimated (too big or too small) content height
update content size with the estimated height
move viewport to the end of that height (either it is final or estimated)
layout end of the document there
do you think that approach translate well to any location in the middle of the document? What about the scrollview scrollbar that depends on the total content Size and updates as layoutmanager update its size, do you have any trick for that?
Topic:
UI Frameworks
SubTopic:
General
Tags: