Emil Ernerfeldt

Results 811 comments of Emil Ernerfeldt

Sorry, I forgot to answer this! I think `[usize; 2]` makes most sense for sizes (compared to `Vec2`), since the textures need to be integer sized. I am a bit...

Truncating with `…` would be a nice option to have.

I think adding a separate `cursor: Stroke` to `struct Visuals` makes sense. That would also replace `text_cursor_width` (would be part of the `Stroke`). The code is in `paint_cursor_end` in `egui/src/widgets/text_edit/builder.rs`

Do you know if there is a JS event generated when you click a completion? If not, this is very difficult to do. Mobile text input is sort of a...

I'm not using windows, and on Mac this works well for me. Take a look at `eframe/src/native/run.rs` (and `egui-winit/src/lib.rs`) to see what events you get (especially `ScaleFactorChanged` and `Resized` is...

> Am I doing something wrong, or what? Maybe? I really don't have enough information to go on. So `row_range` changes, but why? Dig deeper! Use a debugger!

Just add it! Maybe fix https://github.com/emilk/egui/issues/622 while you're at it? :) It's pretty easy - see https://github.com/emilk/egui/pull/1808

Interesting - looking at the code in `Label::layout_in_ui` it _should_ take `halign` into account. Perhaps add a breakpoint there and see what you can figure out?

Please make a minimal reproduce (full code)

The `examples` are mainly used for `eframe`-related examples, i.e. things that cannot be demonstrated by `egui_demo_lib` / . In fact, a lot of the things demoed in this PR is...