Hello,
I was looking at examples in Ruby Tk and found that the grid example
is missing weight meaning that on window resize the grid stays
original size.
@@ -215,6 +206,8 @@
lower
TkGrid.configure(l1, l2, :in=>f, :padx=>‘3m’, :pady=>‘1m’,
:sticky=>:ew)
TkGrid.configure(l3, l4, :in=>f, :padx=>‘3m’, :pady=>‘1m’,
:sticky=>:ew)
- TkGrid.columnconfigure(f, [0,1], :uniform=>1)
- TkGrid.columnconfigure(f, [0,1], :uniform=>1, :weight=>1)
Given the stickiness is set on the above lines this is probably an
omission rather than intent.
Also the buttons need an expand
@@ -37,11 +27,10 @@
EOL
TkFrame.new(base_frame){|f|
- pack(:side=>:bottom, :fill=>:x, :pady=>‘2m’)
- pack(:side=>:bottom, :fill=>:x, :pady=>‘2m’, :expand=>true)
Please fix.
I can provide a real patch if needed.
Thanks
Michal