Skip to content

Commit

Permalink
Improve rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Apr 11, 2024
1 parent c7df0ad commit d1c9e3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default class TableColumnResizeUI extends Plugin {
// the command. If the user typed in the input, then canceled the balloon (`labeledInput#value`
// stays unaltered) and re-opened it without changing the value of the command, they would see the
// old value instead of the actual value of the command.
labeledInput.fieldView.value = labeledInput.fieldView.element!.value = Math.round( possibleRange.current ).toString();
labeledInput.fieldView.value = labeledInput.fieldView.element!.value = Math.ceil( possibleRange.current ).toString();
labeledInput.fieldView.set( {
min: Math.floor( possibleRange.lower ),
max: Math.ceil( possibleRange.upper )
Expand Down

0 comments on commit d1c9e3e

Please sign in to comment.