On a panel header - I have two buttons, one on each side inside the header and a static text item at the center of the header.
I would like to setup correctly to see the buttons on the two extreme sides of the panel header and the static text item
exactly in between.
Did not use the 'spacer' and 'Tabstop' because I think these may not work consistently on the different orientation and different devices (I think?)
(Tabstop may bring the button-2 to extreme right on one device/portrait orientation, but leave it mid way (and not extreme right) for other device/landscape orientation).
So, I used a FlexLayout container inside the panel header.
Within the FlexLayout container I have 3 regular containers each aligned to 1) Left, 2) Center and 3) Right (document says contents are aligned - not the container itself - & that is what I need.)
The contents of the 3 regular containers are 1) Button-1, 2) Text and 3) Button-2
The problem is that even after doing this the Button-2 is not being shown at the extreme right, but right next to the Text with little space in between.
Ideally, this should have shown as
Button-1 <---------Space----------> Text <---------Space----------> Button-2
but is shown as
Button-1 <---------Space----------> Text <-LittleSpace-> Button-2
Design Info: (I may be over doing this - but should work in theory)
PanelHeader: Container_10 (sub-type: PanelHeader)
FlexLayout: Container_22 (sub-type: FlexLayout) - layout width setting:flex(1),flex(1),flex(1)
Container: Container_21 (sub-type: None) - Container alignment: Left, Width: 33%
Button-1
Container End: Container_21
Container: Container_19 (sub-type: None) - Container alignment: Center, Width: 34%
Static Text: Signature
Container End: Container_19
Container: Container_20 (sub-type: None) - Container alignment: Right, Width: 33%
Button-2
Container End: Container_20
FlexLayout End: Container_22
PanelHeader End: Container_10
I made sure that there are no line break for any objects above.
Please help. Thanks.Aligh_right_capture.JPG
I would like to setup correctly to see the buttons on the two extreme sides of the panel header and the static text item
exactly in between.
Did not use the 'spacer' and 'Tabstop' because I think these may not work consistently on the different orientation and different devices (I think?)
(Tabstop may bring the button-2 to extreme right on one device/portrait orientation, but leave it mid way (and not extreme right) for other device/landscape orientation).
So, I used a FlexLayout container inside the panel header.
Within the FlexLayout container I have 3 regular containers each aligned to 1) Left, 2) Center and 3) Right (document says contents are aligned - not the container itself - & that is what I need.)
The contents of the 3 regular containers are 1) Button-1, 2) Text and 3) Button-2
The problem is that even after doing this the Button-2 is not being shown at the extreme right, but right next to the Text with little space in between.
Ideally, this should have shown as
Button-1 <---------Space----------> Text <---------Space----------> Button-2
but is shown as
Button-1 <---------Space----------> Text <-LittleSpace-> Button-2
Design Info: (I may be over doing this - but should work in theory)
PanelHeader: Container_10 (sub-type: PanelHeader)
FlexLayout: Container_22 (sub-type: FlexLayout) - layout width setting:flex(1),flex(1),flex(1)
Container: Container_21 (sub-type: None) - Container alignment: Left, Width: 33%
Button-1
Container End: Container_21
Container: Container_19 (sub-type: None) - Container alignment: Center, Width: 34%
Static Text: Signature
Container End: Container_19
Container: Container_20 (sub-type: None) - Container alignment: Right, Width: 33%
Button-2
Container End: Container_20
FlexLayout End: Container_22
PanelHeader End: Container_10
I made sure that there are no line break for any objects above.
Please help. Thanks.Aligh_right_capture.JPG
Comment