Skip to content

Fix sticky scroll height calculation for variable line heights#3748

Closed
utafrali wants to merge 1 commit intoeclipse-platform:masterfrom
utafrali:fix/issue-3745-line-height-changes-when-emoji-is-added-
Closed

Fix sticky scroll height calculation for variable line heights#3748
utafrali wants to merge 1 commit intoeclipse-platform:masterfrom
utafrali:fix/issue-3745-line-height-changes-when-emoji-is-added-

Conversation

@utafrali
Copy link

When emoji or other content affects line heights, sticky scroll was calculating the total height wrong by assuming all lines were the same. Now it gets the actual height for each line instead. Also fixes the height check for limiting visible lines.

…ScrollingControl

Replace parameterless getLineHeight() calls with the offset-aware
getLineHeight(int offset) variant to correctly account for lines
containing emoji or other extended characters that increase line height.

- In calculateAndSetStickyLinesCanvasBounds(), sum per-line heights
  using stickyLineText.getLineHeight(offset) so the canvas bounds
  accurately reflect the actual rendered height of each sticky line.
- In limitVisibleStickyLinesToTextWidgetHeight(), use
  textWidget.getLineHeight(topOffset) so the visible line count
  estimate respects the actual height of the top visible line.
@BeckerWdf
Copy link
Member

@Christopher-Hermann can you pls. review?

@utafrali
Copy link
Author

Closing — can't sign the ECA.

@utafrali utafrali closed this Feb 27, 2026
@iloveeclipse
Copy link
Member

Closing — can't sign the ECA.

You mean, there is a technical problem or you won't sign?

@utafrali
Copy link
Author

Honestly I'm not comfortable with the obligations that come with signing the ECA — I feel like it goes against the open source spirit. Closing this one out.

@iloveeclipse
Copy link
Member

I feel like it goes against the open source spirit.

Could you please give some example? Eclipse contributors agreement is nowhere against open source. Whole Eclipse Foundation and all open source projects hosted here are based on work of people signed ECA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants