Hello Daniel,

I think I didn't explain very well.

Initially, in your example:
w1 = 150
w2 = 50
w3 = 200
-> so (columns 1 + column 2) widths = 200   = max(w1 + w2, w3)

If you set w3 = 400, you should have  (columns 1 + column 2) widths =
400   = max(w1 + w2, w3)
BUT YOU STILL HAVE 200

Is that right ?

If you put the following code in the playground, there is your initial
example, plus one for the rowspan.
Concerning the rowspan, if you augment height of w6, row1+row2 height augment.

So the behaviour between colspan and rowspan differs.

I hope I have being clear now ?

/////////////////////////////////

var container = new qx.ui.container.Composite(new qx.ui.layout.VBox());
this.getRoot().add(container);

var cont1 = new qx.ui.container.Composite(new qx.ui.layout.Grid());
container.add(cont1);

var w1 = new qx.ui.core.Widget();
w1.set({
  backgroundColor: "red",
  width: 150
});
cont1.add(w1, {row: 0, column: 0});

var w2 = new qx.ui.core.Widget();
w2.set({
  backgroundColor: "green",
  width: 50
});
cont1.add(w2, {row: 0, column: 1});

var w3 = new qx.ui.core.Widget();
w3.set({
  backgroundColor: "blue",
  width: 400
});
cont1.add(w3, {row: 1, column: 0, colSpan: 2});

// rowspan
//
var cont2 = new qx.ui.container.Composite(new qx.ui.layout.Grid());
container.add(cont2);

var w4 = new qx.ui.core.Widget();
w4.set({
  backgroundColor: "red",
  width: 50,
  height: 50
});
cont2.add(w4, {row: 0, column: 0});

var w5 = new qx.ui.core.Widget();
w5.set({
  backgroundColor: "green",
  width: 50,
  height: 50
});
cont2.add(w5, {row: 1, column: 0});

var w6 = new qx.ui.core.Widget();
w6.set({
  backgroundColor: "blue",
  width: 50,
  height: 100
});
cont2.add(w6, {row: 0, column: 1, rowSpan: 2});

/////////////////////////////////

regards,

Cyrille

On Thu, May 24, 2012 at 5:00 PM, Daniel Wagner <[email protected]> wrote:
> Hi,
>
> no matter what I change the width of w3 to, it stretches to fill out the
> row.
>
> Regards,
> Daniel
>
> On 05/23/2012 07:29 PM, cyrille rigault wrote:
>> Hello Daniel,
>>
>> I think any browser reproduces the problem (In my case, last version
>> of Chomium and Firefox on Linux). I tested the problem on qooxdoo 2.0,
>> 1.6, 1.5 and 1.4.
>>
>> On your example, just change w3 width to 300 or 400 for instance.
>> Nothing changes, as it could.
>>
>> Tell me if you are able to reproduce the problem. I think I fix the
>> bug on Grid.js.
>>
>> Best regards,
>>
>> Cyrille
>>
>> On Wed, May 23, 2012 at 5:36 PM, Daniel Wagner<[email protected]>  
>> wrote:
>>> Hi Cyrille,
>>>
>>> I can't reproduce the problem in the GridComplex demo in either qooxdoo
>>> 1.6 or devel. Which qooxdoo version and browser are you using?
>>>
>>> I've created a simplified Playground example:
>>>
>>> http://tinyurl.com/7t5e3gc
>>>
>>> Are you seeing the same issue here?
>>>
>>>
>>> Regards,
>>> Daniel
>>>
>>> On 05/22/2012 08:53 AM, cyrille rigault wrote:
>>>> Hello,
>>>>
>>>>
>>>> I am using qooxdoo for a while now and I think I found a bug in
>>>> colspan for Grids (rowspan seems to be fine).
>>>>
>>>> If you span on 2 columns a widget, its widths is not spread on the 2 
>>>> columns.
>>>>
>>>> I would like to known if this is a known issue ?
>>>>
>>>> examples (measures are widths)
>>>>
>>>> 1)
>>>> w1 = 50
>>>> w2 = 50
>>>> w3 = 200
>>>> =>    col0 = 200, col1 = 50  OK
>>>>
>>>>         0     1
>>>> 0 | w1 | w2 |
>>>> 1 | w3 |      |
>>>>
>>>>
>>>> 2) w3 span on col0 and col1
>>>> w1 = 50
>>>> w2 = 50
>>>> w3 = 200
>>>> =>    col0 = 50, col1 = 50   PROBLEM
>>>>
>>>>         0     1
>>>> 0 | w1 | w2 |
>>>> 1 | w3        |
>>>>
>>>> This can be easily reproducted on the demobrowser with the GridComplex
>>>> layout example, using the top grid containing 3 widgets:
>>>> left top widget: set width to 50
>>>> right top widget : set width to 50
>>>> bottom widget : set width to 200, maxwidth to null, colspan to null
>>>> =>    works fine
>>>>
>>>> now
>>>> bottom widget : colspan to 2
>>>> =>    bottom widget width not spread
>>>>
>>>>
>>>> Cyrille
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond. Discussions
>>>> will include endpoint security, mobile security and the latest in malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to