Comments (4)
Thanks for filling a bug.
Could you provide a small testcase we can use to reproduce the problem?
from slint.
sure
import { Button, VerticalBox, ScrollView } from "std-widgets.slint";
export component AppWindow inherits Window {
VerticalBox {
ScrollView {
VerticalBox {
Text {
text: "first first first first first first first first first first first";
}
Text {
text: "second second second second second second second second second second";
}
}
}
}
}
If you quickly change the size of the window, you will find the problem.
from slint.
I can reproduce this. The NSView::setLayerContentsPlacement
call we have is supposed to avoid this problem, but it seems that after all the refactoring it's now in a place where it's called too late.
So from what I can see, it jitters when using renderer-femtovg
as well as renderer-skia
(which defaults to metal on macOS), but it is smooth and jitter-free when using renderer-skia-opengl
.
from slint.
For the OpenGL renderer, the difference is the timing when NSView::setLayerContentsPlacement
(or contentsGravity
on the layer) is set. It must be done /after/ the NSOpenGLContext
is associated with the view - I guess because the corresponding (hidden) layer doesn't exist until then. For Metal it's the same game, we're not setting that at all yet.
from slint.
Related Issues (20)
- Adding an `invoke_from_event_loop()` with non-`Send` closure HOT 4
- `LineEdit`'s `text` property doesn't follow its bound value anymore after editing HOT 4
- `debug()` adds undesired commas HOT 2
- One-line text box widgets should select all text when receiving focus via keyboard
- Nightly VScode extension broken on MacOS
- `GroupBox` has unevenly distributed padding and misses a `padding` property
- Have Math.atan2 HOT 1
- PopupWindow does not resize to the content size HOT 1
- StandardTableView hangs with high CPU usage when scrolling down in a large table HOT 3
- Dashed/dotted strokes
- String with escape in string breaks syntax highlighting in VS Code HOT 2
- Panic in accesskit when using dialog box HOT 1
- Math.random() HOT 1
- Math.mapRange() HOT 1
- Color issues when using slint with ESP32-S3 HOT 4
- `transparent` `Window` `background` rendered black HOT 1
- `Window` that let mouse event go through to other window HOT 1
- Documentation jumps multiple times during loading with incorrect target position HOT 2
- Term confusion
- Re-loading an image from disk should discard cache if file was modified since last time
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 slint.