Skip to content

fix(sheets-formula-ui): reposition help card as formula text grows - #7744

Merged
wpxp123456 merged 2 commits into
dream-num:devfrom
drakeo338:claude/7699-fix
Sep 28, 2026
Merged

wpxp123456 merged 2 commits into
dream-num:devfrom
drakeo338:claude/7699-fix

Conversation

@drakeo338

Copy link
Copy Markdown
Contributor

close #7699

The formula help card's position only recomputed when the active function or parameter index changed, not when the formula text itself changed. So typing a long formula that wraps onto extra lines grew the editor without moving the help card, and the card stayed put and covered the wrapped text. The fix adds formulaText to the useEditorPosition dependency list so the card repositions as the editor grows, and a test covers the card moving down when a formula wraps from one line to three.

Pull Request Checklist

  • Related tickets or issues have been linked in the PR description (or missing issue).
  • Naming convention is followed (do please check it especially when you created new plugins, commands and resources).
  • Unit tests have been added for the changes (if applicable).
  • Breaking changes have been documented (or no breaking changes introduced in this PR).

@univer-bot univer-bot Bot added the qa:untested This PR is ready to be tested label Sep 25, 2026
The help card only recalculated its position when the function info or
the active parameter index changed. Typing inside a single argument
changes neither, so when the cell editor wrapped onto another line the
card kept its old top and covered the text being typed. Recompute the
position whenever the formula text changes, as SearchFunction already
does with its search text.

close dream-num#7699
@wpxp123456 wpxp123456 removed the qa:untested This PR is ready to be tested label Sep 28, 2026
@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.08%. Comparing base (20e13ed) to head (068bfb2).

Additional details and impacted files
@@           Coverage Diff            @@
##              dev    #7744    +/-   ##
========================================
  Coverage   81.08%   81.08%            
========================================
  Files        3059     3059            
  Lines      198216   198216            
  Branches    51296    50967   -329     
========================================
+ Hits       160718   160722     +4     
+ Misses      37438    37434     -4     
  Partials       60       60            

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wpxp123456
wpxp123456 merged commit a77bd5d into dream-num:dev Sep 28, 2026
14 checks passed
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.

[Bug] Formula assistant covers formula when its length is in few lines

4 participants