Comments (4)
@tqwewe This is because the default way we grab width/height in the app is like:
https://github.com/StarArawn/kayak_ui/blob/main/src/widgets/app.rs#L52
This obviously doesn't work when the target is a render target. I think instead we should query the camera and pull the width and height from the window if the window is the target otherwise pull it from the render target image.
from kayak_ui.
Thanks for the quick reply!
Yeah from the camera makes sense, I think that should solve it
from kayak_ui.
In the meantime you can use a custom built app that takes width and height.
from kayak_ui.
Fixed with the rewrite! 👍 Please reopen if you feel as though this is still an issue.
from kayak_ui.
Related Issues (20)
- Use Dashmap to replace `Rwlock<Hashmap>`
- UI materials have some usability friction when used to bevy shaders
- UI materials do not seem to respect z-ordering
- Quads with borders cannot have a transparent background HOT 1
- Using multiple shader materials causes them to render on eachother's elements
- Small text gets white boxes
- tree::should_remove_root test failed
- Make `Tree` have internal mutablity
- hello_world example is blank when copied into project HOT 3
- Input lag HOT 1
- Text Rendering Inverted HOT 2
- Is there a way to import Chinese fonts? HOT 1
- Add support for text outlines
- Dynamically rendering widgets inside the rsx! block ? HOT 1
- Consider removing the 'Styles' (KStyle) as an input, only leaving ComputedStyles
- I dont understand why widgets wrapped inside of a ContextProvider need to have a 'computed styles' HOT 1
- Consider removing 'computed styles' entirely from custom widgets
- Missing example: mouse cursor position to render position
- Can't query custom widget props HOT 1
- Font loading from subdirectories fails for nested .ttf files
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 kayak_ui.