We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centering of RTL text not working properly inside of a button. In order to reproduce:
pub fn view(&self) -> iced::Element<'_, Message> { widget::Button::new( widget::Text::new("مرحبًا") .width(Length::Fill) .height(Length::Fill) .align_x(Alignment::Center) .align_y(Alignment::Center), ) .width(Length::Fill) .height(Length::Fill) .into() }
The text should be properly centered, as it happens with nor RTL text, for example:
pub fn view(&self) -> iced::Element<'_, Message> { widget::Button::new( widget::Text::new("Hello!") .width(Length::Fill) .height(Length::Fill) .align_x(Alignment::Center) .align_y(Alignment::Center), ) .width(Length::Fill) .height(Length::Fill) .into() }
crates.io release
Linux
The text was updated successfully, but these errors were encountered:
Wanted to add that this also happens when using the git version of iced.
Sorry, something went wrong.
No branches or pull requests
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Centering of RTL text not working properly inside of a button. In order to reproduce:
What is the expected behavior?
The text should be properly centered, as it happens with nor RTL text, for example:
Version
crates.io release
Operating System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered: