-
|
What is the best practice to right align text within a container? Use a grid? E.g. I have a footer made up of the following code: egui::TopBottomPanel::bottom("bottom_panel").show(ctx, |ui| {
ui.horizontal(|ui| {
ui.label(format!("v{}", &env!("CARGO_PKG_VERSION")));
egui::warn_if_debug_build(ui);
ui.hyperlink_to("Project homepage", env!("CARGO_PKG_HOMEPAGE"));
});
});I want the link to be right aligned. |
Beta Was this translation helpful? Give feedback.
Answered by
emilk
Sep 7, 2021
Replies: 1 comment 2 replies
-
|
Instead of ui.with_layout(egui::Layout::right_to_left(), |ui| {
…
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
emilk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of
ui.horizontal, use: