PageBlockSectionItem не выравнивается - PullRequest
0 голосов
/ 23 сентября 2019

У меня есть флажок на моей странице Visualforce, который помечает поле ниже как обязательное.Я не могу получить флажок и поле для выравнивания с флажками выше.

мой код:

 <apex:pageBlockSection title="Health Conditions" columns="1" id="Section">
                <apex:selectCheckboxes layout="pageDirection" value="{!SelectedHealthCondition}">
                    <apex:selectoptions value="{!HealthConditionOptions}"></apex:selectoptions>     
                </apex:selectCheckboxes> 
                <apex:pageBlockSectionItem>
                    <apex:actionRegion>
                        <apex:inputcheckbox value="{!IAHEP.Other_CB__c}" id="bool" style="text-align:left;">
                            <apex:actionSupport event="onchange" rerender="Section"/>
                        </apex:inputcheckbox> 
                    </apex:actionRegion>
                    <apex:outputLabel for="bool" value="OTHER" />
                </apex:pageBlockSectionItem>
                <apex:inputField styleClass="textAreaWidth" required="{!IAHEP.Other_CB__c}" value="{!IAHEP.Other_Health_Conditions__c}"/>
            </apex:pageBlockSection>
...