on ‎2014 May 27 12:26 PM
I have 2 table one on right and one on left and in between I have 2 buttons in a vertical layout I need to have these buttons in middle.
No matter what I do they do not come in center.
Any help with using alignment would be great.
Also I cannot add padding in buttons.
Here is link to bin
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dennis,
I'm doing the same using the vertical layout and have same problem of alignment of the content. I want to align my content (like, labels, buttons) in middle of the layout. Can you please help me to solve my issue.
Thanks,
Rahul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dennis it worked
Thanks Amjad and Atanu .
regards
Sagar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sagar,
I would suggest you have one main horizontal layout which will contain three vertical layouts
First vertical layout will have first listbox
second vertical layout will have your move buttons - class "moveButtons"
Third vertical layout will have second list box
Then, talking of aligning vertivcal middle your move buttons..
heres css for your moveButtons
.moveButtons{
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
}
This should do it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add css
.sapUiHLayoutChildWrapper {
white-space: normal;
display: inline-block;
vertical-align: middle;
}
Example here JS Bin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.