You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this issue while using the RichLog widget but it may actually stem from ScrollView.
Assuming a 25-line high RichLog widget:
When there is a horizontal scrollbar, Page Up and Page Down move e.g. from lines 1-25 to lines 26-50, which is the expected behaviour.
This can be confirmed by running the MRE below this way: SUFFIX= ./richlogtest.py
When there is a horizontal scrollbar, Page Up and Page Down move e.g. from lines 1-24 to lines 26-49, thus hiding line 25, hence this report.
This can be confirmed by running the MRE below this way: ./richlogtest.py
MRE:
#!/usr/bin/env python3importosfromtextual.appimportAppfromtextual.widgetsimportRichLogclassRichLogTest(App):
defcompose(self):
ri=RichLog(auto_scroll=False)
suffix=os.environ.get('SUFFIX', 'A'*1000)
foriinrange(1, 1000):
ri.write(f"This is line number {i}{suffix}")
yieldriif__name__=="__main__":
app=RichLogTest()
app.run()
I noticed this issue while using the RichLog widget but it may actually stem from ScrollView.
Assuming a 25-line high RichLog widget:
This can be confirmed by running the MRE below this way:
SUFFIX= ./richlogtest.py
This can be confirmed by running the MRE below this way:
./richlogtest.py
MRE:
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: