Browse Source

cdb-types: fix wrong right offset

lviguier 1 year ago
parent
commit
aeea3f8bbb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hide/comp/cdb/Cell.hx

+ 2 - 1
hide/comp/cdb/Cell.hx

@@ -1602,6 +1602,8 @@ class Cell {
 			}
 			var t = this.currentValue;
 			buildParameters();
+
+			content.css("right", '${depth == 0 ? rightAnchor - content.width() / 2.0 : rightAnchor}px');
 		});
 
 		d.focus();
@@ -1612,7 +1614,6 @@ class Cell {
 		content.on("click", function(e) { e.stopPropagation(); });
 		content.on("dblclick", function(e) { e.stopPropagation(); });
 
-		content.css("right", '${depth == 0 ? rightAnchor - content.width() / 2.0 : rightAnchor}px');
 		content.css("top", '${topAnchor}px');
 	}
 }