Update pages/type_text.py
Browse files- pages/type_text.py +4 -1
pages/type_text.py
CHANGED
@@ -41,7 +41,10 @@ def scrollToBottom():
|
|
41 |
// - A div directly containing your dynamic content
|
42 |
|
43 |
// Let's try a common Streamlit container class. You might need to adjust this.
|
44 |
-
|
|
|
|
|
|
|
45 |
|
46 |
if (scrollableContainer) {
|
47 |
console.log("Scrollable container found. Scrolling...");
|
|
|
41 |
// - A div directly containing your dynamic content
|
42 |
|
43 |
// Let's try a common Streamlit container class. You might need to adjust this.
|
44 |
+
// Once you've found the correct container div,
|
45 |
+
// note its class names (e.g., class="some-streamlit-class another-class") or its ID (e.g., id="some-id").
|
46 |
+
const scrollableContainer = document.querySelector('$0'); // Example selector
|
47 |
+
#const scrollableContainer = document.getElementById('your-container-id')); // Example selector
|
48 |
|
49 |
if (scrollableContainer) {
|
50 |
console.log("Scrollable container found. Scrolling...");
|