From ce4d47d2998fd882d790838a76300294714f9ccf Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Tue, 2 Apr 2024 21:40:30 -0400 Subject: [PATCH] Use absolute position text area over existing cell content to avoid resizing * Add back textarea outline for accessibility * Keep prior cell content to avoid resizing height * Do not hide overflow as there needs to be a hint as to more editable text content Co-Authored-By: Carson Sievert --- js/dataframe/cell.tsx | 65 ++++++++++--------- js/dataframe/styles.scss | 24 +++++-- .../shared/py-shiny/dataframe/dataframe.js | 26 +++++--- .../py-shiny/dataframe/dataframe.js.map | 6 +- 4 files changed, 72 insertions(+), 49 deletions(-) diff --git a/js/dataframe/cell.tsx b/js/dataframe/cell.tsx index 70e073fc7..2391ad82c 100644 --- a/js/dataframe/cell.tsx +++ b/js/dataframe/cell.tsx @@ -332,25 +332,25 @@ export const TableBodyCell: FC = ({ setValue(e.target.value); } - // https://medium.com/@oherterich/creating-a-textarea-with-dynamic-height-using-react-and-typescript-5ed2d78d9848 - // Updates the height of a