Correct column widths #26096
Labels
[Block] Columns
Affects the Columns Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Describe the bug
After using
UnitControls
in `Columns introduced in the PR there is a regression in distributing columns width.Basically some functions such as hasExplicitColumnWidths or toWidthPrecision from
columns/utils.js
cannot work since there is a checkNumber.isFinite(value)
. Value always comes with the unit, so the result isfalse
. Unfortunately it has an effect on columns width distribution (please notice that on presented gif, the third column width is different)Function called
getTotalColumnsWidth
used withingetRedistributedColumnWidths
sums the width attribute of the individual column defined in % (correct me if I'm wrong). With the approach where width can be defined in different units, function mentioned above should take into account somehow.To reproduce
Steps to reproduce the behavior:
30/70
Expected behavior
Width should be distributed properly as before introducing the
UnitControls
Screenshots
Added above
Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: