mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user