21 Feb 2007 12:55 AM #1
I have a problem with the grid Width. How can I tell to the grid to get the size of the GridPanel in which it is?
Something like the old "autoWidth: true"
21 Feb 2007 7:18 AM #2
21 Feb 2007 8:59 AM #3
I don't understand. Can you explain a little further? Is GridPanel broken for you? Thanks.
21 Feb 2007 9:23 AM #4
I have a grid in a GridPanel in a center region of a border layout. Everything works fine except the fact that the body of the grid does not complete the with of the panel.
As you can see in the screenshot, I have the right part of the row left white... I would like to have the row till the end of the panel.
How can I do that?
Many thanks and sorry for my poor English.
21 Feb 2007 9:38 AM #5
Ah, the grid is in fact expanding to cover the whole panel but the rows now end at the last column. This is how the grid originally worked and there was a hack in .33 to get them to go all the way across no matter what. That hack doesn't work with the new version.
21 Feb 2007 9:44 AM #6Originally Posted by jacksloc
21 Feb 2007 9:49 AM #7
It looks fine to me. If it's really a big problem, I can try to hack something up.
21 Feb 2007 9:59 AM #8
No, no... don't do this just for me. It's not a big problem...
It was just easy.
I didn't have to worry about the dimension of the panel in which the grid was.
Another benefit was that resizing the window, I didn't have the horizontal scroll bar till the end of the last column.
But if I'm the only one having this problem... it's OK, I will add an empty column.
Thanks for your help.
21 Feb 2007 10:34 AM #9
You shouldn't be getting any extra scrollbars. Do you have a URL I can look at? I can take a look for you and see what we can do.
22 Feb 2007 10:42 AM #10
use grid.getView().fitColumnsToContainer(); works fine for me.
By franklt69 in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 9 Feb 2007, 6:32 AM
By ncubeait in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 28 Jan 2007, 9:48 AM
By jamaljohnson in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 12 Jan 2007, 4:11 PM