resize: Use autosize on window resize.

This fixes a bug where reducing the height of the window, reduces
the size of textarea and doesn't instroduce scrollbars, making
the textarea not scrollable.
This commit is contained in:
Aman Agrawal
2023-05-29 18:27:35 +05:30
committed by Tim Abbott
parent 9c2ffaf1b3
commit db26f2b2fc

View File

@@ -3,6 +3,7 @@ import $ from "jquery";
import * as blueslip from "./blueslip";
import * as compose_state from "./compose_state";
import * as compose_ui from "./compose_ui";
import * as condense from "./condense";
import * as message_lists from "./message_lists";
import * as message_viewport from "./message_viewport";
@@ -166,6 +167,7 @@ export function handler() {
condense.clear_message_content_height_cache();
}
resize_page_components();
compose_ui.autosize_textarea($("#compose-textarea"));
// Re-compute and display/remove [More] links to messages
condense.condense_and_collapse($(".message_table .message_row"));