Comments (3)
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
from textual.
After digging a bit deeper into this, the problem seems to be where the ListView._index
is set in __init__
:
textual/src/textual/widgets/_list_view.py
Lines 120 to 125 in a5cab15
The off-by-one error can be fixed by simply changing where initial_index - 1
, however I think the bigger issue here is that the self._nodes
aren't actually available yet, meaning this will always just return the default anchor value?
from textual.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
from textual.
Related Issues (20)
- Add feature: TCSS property font-size HOT 5
- Header Expansion HOT 6
- Color Palete HOT 1
- `pop_screen()` triggering randomly after hoovering buttons under heavy load HOT 13
- The type of dark attribute of class App might be inaccurate. (Reactive[bool] -> bool) HOT 5
- Broken Links in Reference/Widgets sections HOT 2
- Add tooltips to all input widgets HOT 1
- How to change text background on button click HOT 2
- CancelledError stack trace in terminal after quitting app with Ctrl+C HOT 2
- `on_leave` event being fired by widget in inactive screen
- pageup and pagedown bindings not firing on `main` branch HOT 6
- Memray's test suite deadlocks with Textual 0.65.2 HOT 3
- New default key bindings for DataTable override app-defined bindings HOT 3
- priority binding order is not respected in the Footer HOT 3
- Method to add content to Content Switcher HOT 3
- Memray's test suite fails due to a deadlock with Textual 0.67.1 HOT 6
- Possible deadlock with the ToastRack and Tooltip that appeared out of nowhere HOT 3
- Clicking off the Select dropdown causes a crash in `update_focus` HOT 8
- v0.68.0 test_deadlock is failing HOT 12
- Some minor documentation additions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textual.