View Full Version : [4.1 b2] Bug - Layout - Width % not working

27 Jan 2012, 7:06 AM
To test go


click "Live Preview" on code example.

I see

xtype: 'panel',
title: 'Inner Panel Three',
width: '50%',
flex: 4

as a panel with zero width on Win7(64bit) in FF9.0.1 and Safari 5.1.2.

Please fix and give a workaround.

27 Jan 2012, 9:57 AM
I'm surprised that this ever worked. What is the reasoning behind applying both a flex value ~and~ a width as a percentage? A flex value is a ratio, so, in effect, a percentage as well.

27 Jan 2012, 10:12 AM
It's in a vbox so the flex is a height, not a width.

This example is taken straight from the docs for vbox. I tried it against the 4.0.7 docs and it works fine. Changing the value from 50% to 90% resizes just like you'd expect.

28 Jan 2012, 12:44 AM
As skirtle said: It is an ExtJS product example without any changes by me as a user. It worked before and it is broken now.