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
I was trying to set the position of the text in the simple example, but I cannot adjust the position offset of the text (= SplashItem with SingleText) relative to the screen. The text always sticks to the left side of the area defined by the parameter width.
For instance, with width: Val::Percent(100.),:
and with width: Val::Percent(60.),:
The workaround for now would be to use the Grid layout I guess.
Moreover, the size of the text is set by the font size, so if the width parameter is small than the size defined by the font, the text disappear, which is logical but would take a bit of fiddle around to find the right parameters.
My suggestion would be, for the Grid layout, to:
totally ignore the width parameter
Use the font size to determine the size of the SingleText widget
add an x_center_offset relative the center. The most common use case is to align the text with the center of the screen, ad more rarely to displace it.
The text was updated successfully, but these errors were encountered:
I was trying to set the position of the text in the
simple
example, but I cannot adjust the position offset of the text (= SplashItem with SingleText) relative to the screen. The text always sticks to the left side of the area defined by the parameterwidth
.For instance, with
width: Val::Percent(100.),
:and with
width: Val::Percent(60.),
:The workaround for now would be to use the Grid layout I guess.
Moreover, the size of the text is set by the font size, so if the
width
parameter is small than the size defined by the font, the text disappear, which is logical but would take a bit of fiddle around to find the right parameters.My suggestion would be, for the Grid layout, to:
width
parameterx_center_offset
relative the center. The most common use case is to align the text with the center of the screen, ad more rarely to displace it.The text was updated successfully, but these errors were encountered: