Code Monkey home page Code Monkey logo

Comments (5)

NamelessCoder avatar NamelessCoder commented on July 23, 2024

Hi @ste101,

The style attribute is not supported for page BE layouts; here, you have to use colspan and rowspan. Example:

If there are only two columns in a row and column A has a colspan of 4 and column B has a colspan of 2, the final width distribution becomes 66% / 33%. It makes it a little bit harder to hit precise values but approximate values should be fine, given that the BE page module isn't fixed-width :)

Cheers,
Claus

from flux.

ste101 avatar ste101 commented on July 23, 2024

Thanks. This is a possible solution.
Where can I get the information what attribute is supported or not. Did I miss something?
If not would it be possible to add this to the VH?

from flux.

ste101 avatar ste101 commented on July 23, 2024

Unfortunatelly this config does not work right. The smaller column is rendered wider.

            <flux:flexform.grid.row>
                <flux:flexform.grid.column colPos="1" name="Hero Unit" colspan="6" />
            </flux:flexform.grid.row>
            <flux:flexform.grid.row>
                <v:switch value="{position}">
                    <v:case case="left" break="TRUE">
                        <flux:flexform.grid.column colPos="3" name="Sidebar Content" colspan="2" />
                        <flux:flexform.grid.column colPos="0" name="Main Content" colspan="4" />
                    </v:case>
                    <v:case case="right" break="TRUE">
                        <flux:flexform.grid.column colPos="0" name="Main Content" colspan="4" />
                        <flux:flexform.grid.column colPos="3" name="Sidebar Content" colspan="2" />
                    </v:case>
                    <v:case case="default">
                        <flux:flexform.grid.column colPos="0" name="Main Content" colspan="6" />
                    </v:case>
                </v:switch>
            </flux:flexform.grid.row>
            <flux:flexform.grid.row>
                <flux:flexform.grid.column colPos="2" name="Footer Content" colspan="2" colspan="6" />
            </flux:flexform.grid.row>
        </flux:flexform.grid>

from flux.

NamelessCoder avatar NamelessCoder commented on July 23, 2024

Hi Stephan,

Are you using the git master of fluidpages? This commit: NamelessCoder/fluidpages@2e64f4c should have fixed the issue by counting total colspans rather than just counting columns when setting colcount.

Cheers,
Claus

from flux.

ste101 avatar ste101 commented on July 23, 2024

It is working with the latest version. Thanks

from flux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.