0

Grid rendering intended or bug?

asked 2016-06-14 20:38:32 +0800

akira gravatar image akira
0 1

updated 2016-06-14 20:58:41 +0800

I build an application where users can modify a generated grid by combining cells interactive.

When i have a 3x3 grid and combine the upper two cells in each column, only two rows are rendered and the upper is not twice as big. Is this intended behavior or a bug?

    <grid>
        <columns>
            <column/>
            <column/>
            <column/>
        </columns>
        <rows>
            <row>
                <cell rowspan="2">x</cell>
                <cell rowspan="2">x</cell>
                <cell rowspan="2">x</cell>
            </row>
            <row>
                <cell visible="false">x</cell>
                <cell visible="false">x</cell>
                <cell visible="false">x</cell>
            </row>
            <row>
                <cell>x</cell>
                <cell>x</cell>
                <cell>x</cell>
            </row>
        </rows>
    </grid>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-06-17 06:31:10 +0800

chillworld gravatar image chillworld flag of Belgium
5337 4 9
https://github.com/chillw...

I've been playing in fiddle with this.
Looks like when all your cells have the same rowspan, and even when an empty row follows, the height is adjusted to a normal row.
V The moment when you use 1 cell with no rowspan, and the next row has 1 cell it works as expected.
This is tested for versions 6.5, 7 and 8 and all the same result.

You could always set the height attribute of the row, with this you have a good control on the size of the row.

Greetz chill.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-06-14 20:38:32 +0800

Seen: 16 times

Last updated: Jun 17 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More