From e63e80dee012b22aca94c0095e184c6a6a80d4d7 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 4 Nov 2016 12:35:38 -0400 Subject: PLT-4404/PLT-4578/PLT-4541/PLT-4542 Replaced third party autosizing textarea with a custom one (#4442) * PLT-4578 Replaced third party autosizing textarea with a custom one * Fix Textbox.handleHeightChange not being called * Removed unused CSS * PLT-4541 Force EditPostModal to resize upon opening * Removed usage of jquery from AutosizeTextarea * Reverted changes made for PLT-4580 as they're no longer needed --- webapp/sass/components/_modal.scss | 2 +- webapp/sass/layout/_post.scss | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) (limited to 'webapp/sass') diff --git a/webapp/sass/components/_modal.scss b/webapp/sass/components/_modal.scss index 7a44e3b96..3faf78bc6 100644 --- a/webapp/sass/components/_modal.scss +++ b/webapp/sass/components/_modal.scss @@ -21,7 +21,7 @@ .custom-textarea { max-height: 60vh; - min-height: 20em; + min-height: 8em; } .suggestion-list { diff --git a/webapp/sass/layout/_post.scss b/webapp/sass/layout/_post.scss index efba5b6f1..4a995a4d6 100644 --- a/webapp/sass/layout/_post.scss +++ b/webapp/sass/layout/_post.scss @@ -22,31 +22,6 @@ color: #d04444 !important; } -.textarea-div { - border: 0; - color: rgba(0,0,0,0); - height: auto; - left: 1px; - line-height: 20px; - min-height: 36px; - position: absolute; - top: 0px; - white-space: pre-wrap; - word-break: break-word; - word-wrap: normal; -} - -body.ios { - .textarea-div { - -webkit-overflow-scrolling: auto; - padding: 7px 17px 7px 15px; - } -} - -.textarea-div::-webkit-scrollbar { - display: none; -} - .textarea-wrapper { min-height: 36px; position: relative; @@ -390,7 +365,6 @@ body.ios { .custom-textarea { bottom: 0; - line-height: 1.5; max-height: 162px !important; padding-right: 28px; padding-top: 8px; -- cgit v1.2.3-1-g7c22