Skip to content

Commit

Permalink
fix: css fixes for 'if state' text boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed May 27, 2019
1 parent 6785542 commit 78a2707
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nodes/_static/ifstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ var ifState = (function($) {
if (!$input.hasClass('red-ui-typedInput')) return;

let width =
$input.parent('div').width() -
$('#node-input-halt_if_compare').width() -
20.5;
$('#node-input-name').width() -
$('#node-input-halt_if_compare').outerWidth();

if ($clearIfState.is(':visible')) {
width = width - $clearIfState.outerWidth(true) - 4;
width = width - $clearIfState.outerWidth(true);
}

$input.typedInput('width', width);
Expand Down

0 comments on commit 78a2707

Please sign in to comment.