# Expanding a flex grid sizer horizontally

**URL:** <https://www.ruby-forum.com/t/expanding-a-flex-grid-sizer-horizontally/209101>\
**Category:** wxRuby\
**Created:** [July 5, 2011, 9:20pm UTC](https://www.ruby-forum.com/t/expanding-a-flex-grid-sizer-horizontally/209101 "2011-07-05T21:20:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 5, 2011, 9:20pm UTC](https://www.ruby-forum.com/t/expanding-a-flex-grid-sizer-horizontally/209101/1 "2011-07-05T21:20:35Z")

</div>

* * *

wxruby-users mailing list  
removed\_email\_address@domain.invalid  
[http://rubyforge.org/mailman/listinfo/wxruby-users](http://rubyforge.org/mailman/listinfo/wxruby-users)

---

<div class="post-metadata">

**Author:** ![Simon\_Szustkowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@Simon\_Szustkowski](https://www.ruby-forum.com/u/Simon_Szustkowski)\
**Post date:** [July 6, 2011, 4:01pm UTC](https://www.ruby-forum.com/t/expanding-a-flex-grid-sizer-horizontally/209101/2 "2011-07-06T16:01:01Z")

</div>

On 05/07/2011 20:11, Simon Szustkowski wrote:

> Right now it is so that the TextCtrls have the same width as the StaticTexts.  
> Can you tell me how to expand them horizontally?

Not tested, but I think you ought to specify that the second column of  
the FGSizer should take up extra space

settingsRow.add\_growable\_column(1)

alex

---

<div class="post-metadata">

**Author:** ![Simon\_Szustkowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@Simon\_Szustkowski](https://www.ruby-forum.com/u/Simon_Szustkowski)\
**Post date:** [July 8, 2011, 9:23pm UTC](https://www.ruby-forum.com/t/expanding-a-flex-grid-sizer-horizontally/209101/3 "2011-07-08T21:23:42Z")

</div>

* * *

wxruby-users mailing list  
removed\_email\_address@domain.invalid  
[http://rubyforge.org/mailman/listinfo/wxruby-users](http://rubyforge.org/mailman/listinfo/wxruby-users)
