Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form fields are squashed inside of Responsive layout #1

Open
jreznot opened this issue Mar 4, 2019 · 1 comment
Open

Form fields are squashed inside of Responsive layout #1

jreznot opened this issue Mar 4, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jreznot
Copy link
Contributor

jreznot commented Mar 4, 2019

Example:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
        caption="Responsive Form"
        xmlns:swr="http://strangeway.org/xsd/responsive/sw-responsive.xsd">

    <data>
        <instance id="userDc" class="com.haulmont.cuba.security.entity.User" view="_local">
            <loader>
                <query>
                    <![CDATA[
                    select u from sec$User u
                    where u.loginLowerCase = 'admin'
                    ]]>
                </query>
            </loader>
        </instance>
    </data>

    <layout height="AUTO" spacing="true">
        <swr:responsiveLayout width="100%">
            <swr:row width="100%"
                     horizontalSpacing="true"
                     horizontalSpacingSize="SMALL">
                <swr:column width="100%">
                    <swr:content>
                        <groupBox width="100%">
                            <form dataContainer="userDc" width="100%">
                                <column width="100%">
                                    <textField property="login" width="100%"/>
                                    <checkBox property="active" width="100%"/>
                                </column>
                            </form>
                        </groupBox>
                    </swr:content>
                    <swr:display xs="12" sm="12" md="6" lg="6"/>
                </swr:column>
            </swr:row>
        </swr:responsiveLayout>

        <button id="closeBtn"
                caption="Close"/>
    </layout>
</window>

Result:

image

@jreznot jreznot added the bug Something isn't working label Mar 4, 2019
@jreznot jreznot self-assigned this Mar 4, 2019
@jreznot jreznot assigned glebfox and unassigned jreznot Jun 14, 2019
@klaus7
Copy link

klaus7 commented Jun 16, 2020

When I use the vbox, my elements are not bound by the wrapping swr:content element. That's probably a similar problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants