Comments (8)
Can you share the project so that I can try?
from gooey.
Eh the project is a mess
I think I found the source of the issue and managed to reproduce it: "Adjustment Mode: Stretch" on stencil nodes gives issues. I think it is possible to reproduce it in gooey example.
In the gui file
\gooey\themes\kenneyblue\components\dynamiclist.gui
Set both bg
and stencil
to Adjust Mode: Stretch.
You only have to make the window narrower for it to pop up.
from gooey.
Hmm, yeah, since that's a dynamic list it has a fixed amount of list items and they are created on startup. We need to find a way to detect that there's a need for more/less list items and recreate them.
from gooey.
What do you think would be the best way to do this? Adding a window listener?
from gooey.
Well, I think maybe Gooey should have a function that the application can call to set/update the current window width/height. And components can somehow read this value and decide on recreating/updating the view.
from gooey.
I've played around with a gooey.get/set_window_size() function that the components can use to detect a change and that all works well. The next problem in the case of a list if to calculate the new size of the stencil node so that it's possible to calculate the number of list item nodes to create.
from gooey.
The next problem in the case of a list if to calculate the new size of the stencil node so that it's possible to calculate the number of list item nodes to create.
Would be very handy to call this separately for when you use set_size on a list too.
from gooey.
I've decided that it becomes too messy to use stretch adjust mode on lists. It complicates things too much when it comes to visible list item calculations, max scroll amount etc.
I have added support for detecting when the stencil size has changed and will recreate the nodes in the list when this happens.
from gooey.
Related Issues (20)
- Don't click on a list item if the list have been scrolled HOT 1
- input component doesn't handle utf8 characters HOT 1
- Allow to configure scroll behavior for horizontal lists
- Trying to erase none utf8 characters throw errors HOT 4
- Input state machine doesn't include 'released_now' or 'clickable' fields on last frame HOT 13
- Scroll list flick
- Bug: If dynamic list becomes empty, items have invalid data attached HOT 3
- Using character . after numbers will introduces extra characters on mobile HOT 6
- Missing return checkbox instance in set_checked or set_visible HOT 1
- Scrolling wheel speed option
- How can I change the theme ? HOT 2
- No typing input from Android browsers HOT 2
- Missed backspaces on iOS
- Grid component
- .nodes failing on list items in dynamic_list HOT 3
- Input widget's "deselected_now" property always false
- List data HOT 1
- Lists are not updated on list refresh since 10.0.0 HOT 2
- Fix for trailing spaces creates issues
- Dynamic List Refresh Behavior 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 gooey.