From 8e66b74bccaf2b6ce3bc44dd62f2111f7f1467ab Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Thu, 23 May 2019 10:01:30 -0400 Subject: [PATCH] Make unsquare threshold field wider to account for stepper control in Firefox (close #6418) --- modules/ui/issues.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/issues.js b/modules/ui/issues.js index 92100bac5..b98a7e9fa 100644 --- a/modules/ui/issues.js +++ b/modules/ui/issues.js @@ -608,7 +608,7 @@ export function uiIssues(context) { .attr('class', 'square-degrees-input') .call(utilNoAuto) .on('input', function() { - this.style.width = (this.value.length + 1) + 'ch'; // resize + this.style.width = (this.value.length + 2.5) + 'ch'; // resize }) .on('click', function () { d3_event.preventDefault(); @@ -624,7 +624,7 @@ export function uiIssues(context) { .on('blur', changeSquare) .merge(input) .property('value', degStr) - .style('width', (degStr.length + 1) + 'ch'); // resize + .style('width', (degStr.length + 2.5) + 'ch'); // resize } @@ -646,7 +646,7 @@ export function uiIssues(context) { input .property('value', degStr) - .style('width', (degStr.length + 1) + 'ch'); // resize + .style('width', (degStr.length + 2.5) + 'ch'); // resize context.storage('validate-square-degrees', degStr); context.validator().changeSquareThreshold(degNum);