Inline Radio Button Vertical Alignment

When using the inline radio button, the default vertical alignment seems off when text is placed next to it. Here's the XML I'm using:

<Text InlineRadioButtonFieldName="fn1" ID="rb1" InlineRadioButtonCheckedIndex="-1">
<Segment>
<RadioButton ButtonHeight="8" ButtonWidth="8" MarginTop="-2"></RadioButton>
</Segment>

<Segment>
Yes#$TAB
</Segment>

<Segment>
<RadioButton ButtonHeight="8" ButtonWidth="8" MarginTop="-2"></RadioButton>
</Segment>

<Segment>
No
</Segment>
</Text>

Note that I have to put a MarginTop="-2" to get the radio buttons to line up correctly with the text.

Can you explain why this happens and if this is something that can be easily fixed?

Thanks!

Dan

Dear Dan,

We have logged this issue as PDF-3049 and we will try to fix it soon.

We have modified our code to make this work better. The hotfix will be published early next week. But note that the default text size is 12pt and the radio button in your example is 8pt. If the radio button does not have the same size as text you have to adjust the vertical positon by yourself.

I have documented your note about the default text size of the radio button. If you can do anything about that automatically in the future, I would appreciate it.

For now it is working to adjust the MarginTop manually.

Thanks!

Dan

Dear Dan,

In this hotfix (3.4.4) we have supported auto-size of the inline radio button. You can try it without setting the button size. If the size is not set, it will be decided based on the text font size.

Very good! This will help clean up the XML file considerably.

My previous post was actually asking if you can keep in mind to automatically handle the vertical alignment based on the size of the radio button so that I don't have to manually set the topMargin to get it to line up with the text correctly.

Obviously I can't see your code, but since you are now autosizing the radio buttons it seems that it wouldn't be too hard to make them automatically vertical align center correctly either.

Please correct me if I'm wrong. Either way, see if you can support it in the future.

Thanks!

Dan

I have logged this issue. We will support it in the future version.