Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

HorizontalLayout and FlexComponent.JustifyContentMode.BETWEEN yields unexpected results #54

Closed
mvysny opened this issue Apr 20, 2018 · 1 comment
Milestone

Comments

@mvysny
Copy link
Member

mvysny commented Apr 20, 2018

My use case is to have two child h3 and h4 in a HorizontalLayout, showing a "Welcome" text justified to the left, "App Name" justified to the right. In hopes to achieve that, I have set h3 and h4 to wrap its contents and set the parent HorizontalLayout to "Between", hoping for the HorizontalLayout to add space between those two items, pushing them apart.

However, there is a third item: an invisible ::before which is also considered by the flex layout engine, and hence the flex layout engine distributes space between the ::before and h3.

Please see the screenshot attached. Could it be possible to remove the ::before from HorizontalLayout?

screenshot from 2018-04-20 18-33-38

@mvysny mvysny changed the title HorizontalLayout and FlexComponent.JustifyContentMode.BETWEEN works weird HorizontalLayout and FlexComponent.JustifyContentMode.BETWEEN yields unexpected results Apr 20, 2018
@pleku pleku closed this as completed Apr 23, 2018
@pleku
Copy link
Contributor

pleku commented Apr 23, 2018

Issue moved to vaadin/vaadin-ordered-layout #49 via ZenHub

@SomeoneToIgnore SomeoneToIgnore added this to the 1.0.0.beta5 milestone Apr 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants