-
Notifications
You must be signed in to change notification settings - Fork 24
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
Alignment Issues #49
Comments
The image you posted, is that suppose to be for xs,sm,md,lg? |
That image is xs. Here's some inspector code. There are also some nested columns and rows, however only one column contains a component and the rest are set to 0 for screen sizes where they should not appear. Also MIDDLE_CENTER is set for all rows. For example:
|
Thank you for posting the inspector very helpful I understand the issue. So because it's in xs mode the Column takes the full width. That is working right and is aligned right(100% width aligned center is still 100% width). However, the components in the Column are not aligned. Use |
So the caption is set on the Column which is taking up the full width. If you move the Caption to the Component within the Column you will be good. |
But the Caption is already set to the Component, not the Column. Here's the instantiation Here's the signature from Vaadin |
Sorry I dont know how I missed this. You said "are set to 0 for screen sizes where they should not appear" that is not the proper way to hide and show items. Use This may be throwing off the CSS |
Okay, I've changed the code to use Also tried Code is below:
|
Actually What is the purpose of these lines?
Depending on what your trying to accomplish. |
I was just trying to get the components to appear aligned the way I wanted, but I saw that you can't set alignment for individual components. So I created extra columns to pad the components on the left and right to make it look like they're aligned Middle_Right and Middle_Left. Does that make sense? |
I'm trying a lot of different combinations of code to build this the right way, but I think |
Rows can be nested in Rows Directly, No need for a new ResponsiveLayout
|
I believe that there was just miscommunication from the api of how they work together. Its hard to say exactly how it should be structured because I don't know exactly how it is suppose to look. For example you really only need nested Rows if you want multiple Columns inside another Column. |
You could give this a try if you want. Again I don't know what you want the layout to look like exaclty. Try adding the Components Directly withCenteredLayout instead nesting for one Component.
|
Whatever is happening with It would be perfect otherwise! |
Ugly yet descriptive. Try this (each row is like 4 of the Orange Boxes with the directComponent being the green.)
|
Okay, I'm out of time for today, but I'll try this tomorrow. Thanks! In the meantime, is there anyway we could investigate what's happening with these methods?
Because the columns and rows are doing what they should. They're perfect. And, the components would be aligned on the right and the center as they should. It's just the captions that are weird. But they are only weird when those two methods are used. If there was a way to get those methods to work as they already do, but fix the caption issue, then this issue would be solved :) |
Great addon! Everything works except alignment.
Have a few components in the ResponsiveLayout, rows and columns that are on the left despite default alignment in the rows being set to middle center. The bottom component is in a regular vertical layout and aligning as expected.
The text was updated successfully, but these errors were encountered: