Skip to content
New issue

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

No way to set the position of a SplashItem with SplashType::List #11

Open
LeCalicot opened this issue Oct 7, 2023 · 1 comment
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@LeCalicot
Copy link

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.),:
image
and with width: Val::Percent(60.),:
image

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.
@SergioRibera SergioRibera added enhancement New feature or request help wanted Extra attention is needed labels Oct 7, 2023
@SergioRibera
Copy link
Owner

I will work to fix this as soon as possible 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants