Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUEST: Panels' scroll bars #17

Closed
2 tasks done
KirilStrezikozin opened this issue Feb 3, 2023 · 1 comment
Closed
2 tasks done

REQUEST: Panels' scroll bars #17

KirilStrezikozin opened this issue Feb 3, 2023 · 1 comment
Assignees
Labels
feature upgrade for your old lawnmower solved How could you? GPT helped?

Comments

@KirilStrezikozin
Copy link
Owner

KirilStrezikozin commented Feb 3, 2023

This feature request is:

  • not a duplicate
  • implemented

Is your feature request related to a problem? Please describe.
thomas | Spaceflower#2247 (Discord):
make this a scroll box if possible. Would help with that many objects
image

Describe the solution you'd like to be implemented
Some UILists have a fixed rows value equal to the number of items in it. Need to add a scroll bar if that number is too big.

@KirilStrezikozin KirilStrezikozin added the feature upgrade for your old lawnmower label Feb 3, 2023
@KirilStrezikozin KirilStrezikozin self-assigned this Feb 3, 2023
@KirilStrezikozin KirilStrezikozin added this to the BakeMaster 3.0.0 milestone Feb 9, 2023
@KirilStrezikozin
Copy link
Owner Author

KirilStrezikozin commented Feb 9, 2023

I'll need to make sure there's a scroll bar for each UIList.


rows equals to min template_list's row height.
rows = len(CollectionProperty_Instance) means there won't be any scroll bar.

so I did dynamic rows value for bm_table_of_objects template_list to allow scrollbar when there're too many objects:

row.template_list('BM_UL_Table_of_Objects_Item', "", scene, 'bm_table_of_objects', scene.bm_props, 'global_active_index', rows=rows)

rows value there depends on ui buttons displayed, so that'll be too much for other simple tables where min rows could be smth like 5:

rows = 5
self.layout.template_list(..., rows=rows)

@KirilStrezikozin KirilStrezikozin added the in progress All night I stay not sleeping because I'm thinking about this label Feb 9, 2023
KirilStrezikozin added a commit that referenced this issue Feb 9, 2023
@KirilStrezikozin KirilStrezikozin added close on release done here, but let's wait for the release solved How could you? GPT helped? and removed in progress All night I stay not sleeping because I'm thinking about this labels Feb 9, 2023
KirilStrezikozin added a commit that referenced this issue Feb 9, 2023
@KirilStrezikozin KirilStrezikozin removed the close on release done here, but let's wait for the release label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature upgrade for your old lawnmower solved How could you? GPT helped?
Projects
None yet
Development

No branches or pull requests

1 participant