n01dea
n01dea

Reputation: 1580

How to Align Horizontally sap.m.FlexBox Items of Different Height in SAPUI5?

using sap.m.FlexBox inside of a sap.m.Column inside of a sap.m.Table. flex box's alignContent is set to Center. items of the flex box are e.g. a sap.m.Input and a sap.m.Text. the input control is heigher than the text. input gets aligned correctly to the center. text gets aligned to the top at the same level of the height of the input controller. is there any way without CSS to get the text aligned to the center of the column as well? i.e. not the the top of the input controller.

enter image description here

Upvotes: 2

Views: 7364

Answers (2)

Andrew Naumovich
Andrew Naumovich

Reputation: 1450

alignItems property should do the job.

enter image description here

Upvotes: 3

n01dea
n01dea

Reputation: 1580

work around is to use a sap.m.ObjectIdentifier instead of sap.m.Text.

Upvotes: 1

Related Questions