Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] composer: overflow on composer at end of screen #5252

Closed
wants to merge 1 commit into from

Conversation

hokolomopo
Copy link
Contributor

@hokolomopo hokolomopo commented Nov 22, 2024

Description

The button to close the composer's formula assistant would overflow for the viewport and make an additional scrollbar appear when it's at the end of the screen (eg. standalone composer in the CF color scale panel).

This was due to two things:

  1. there was a comment with //, which is invalid css and disabled the width property of the button
  2. we were using a CLOSE_ICON_RADIUS to compute the position of the formula assistant. But this constant wasn't actually used in the CSS, so the button could have an arbitrary width unrelated to the constant. (in practice it was 18.4px vs 18px, but this would change if we changed the font size).

Task: 4315958

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Nov 22, 2024

Pull request status dashboard

@hokolomopo hokolomopo force-pushed the 18.0-composer-assistant-overflow-adrm branch from c36aca2 to e45a369 Compare November 22, 2024 08:37
The button to close the composer's formula assistant would overflow
from the viewport and make an additional scrollbar appear when it's
at the end of the screen (eg. standalone composer in the CF color
scale panel).

This was due to two things:
1) there was a comment with `//`, which is invalid css and disabled
the `width` property of the button
2) we were using a `CLOSE_ICON_RADIUS` to compute the position of the
formula assistant. But this constant wasn't actually used in the CSS,
so the button could have an arbitrary width unrelated to the constant.
(in practice it was 18.4px vs 18px, but this would change if we changed
the font size).

Task: 4315958
@hokolomopo hokolomopo force-pushed the 18.0-composer-assistant-overflow-adrm branch from e45a369 to 5257103 Compare November 22, 2024 08:43
@rrahir
Copy link
Collaborator

rrahir commented Nov 22, 2024

@robodoo r+

@robodoo robodoo closed this in 434c060 Nov 22, 2024
@fw-bot fw-bot deleted the 18.0-composer-assistant-overflow-adrm branch December 6, 2024 11:47
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