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).
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 thewidth
property of the button 2) we were using aCLOSE_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
Forward-Port-Of: odoo/o-spreadsheet#5252