You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Besides, I don't really understand why Wrap::None has to be handled differently from other wrapping options. I might be wrong here, but wouldn't replacing fit_x - word_width >= 0. with wrap == Wrap::None || fit_x - word_width >= 0. inside the second branch be sufficient? Is this done for performance reasons?
The text was updated successfully, but these errors were encountered:
When calling
layout
withWrap::None
, thew
property ofVisualLine
is not updated, which breaks alignment options such asAlign::center
:cosmic-text/src/shape.rs
Lines 664 to 670 in bfb5eef
Besides, I don't really understand why
Wrap::None
has to be handled differently from other wrapping options. I might be wrong here, but wouldn't replacingfit_x - word_width >= 0.
withwrap == Wrap::None || fit_x - word_width >= 0.
inside the second branch be sufficient? Is this done for performance reasons?The text was updated successfully, but these errors were encountered: