diff options
Diffstat (limited to 'ext/tk/lib/tk/scrollbar.rb')
-rw-r--r-- | ext/tk/lib/tk/scrollbar.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/scrollbar.rb b/ext/tk/lib/tk/scrollbar.rb index 0ee4423c9a..8d4d40322d 100644 --- a/ext/tk/lib/tk/scrollbar.rb +++ b/ext/tk/lib/tk/scrollbar.rb @@ -41,6 +41,7 @@ class TkScrollbar<TkWindow w.yscrollcommand proc{|first, last| self.set(first, last)} end } + Tk.update # avoid scrollbar trouble self end @@ -52,6 +53,12 @@ class TkScrollbar<TkWindow fail RuntimeError, "not depend on the assigned_list" end + def configure(*args) + ret = super(*args) + # Tk.update # avoid scrollbar trouble + ret + end + #def delta(deltax=None, deltay=None) def delta(deltax, deltay) number(tk_send_without_enc('delta', deltax, deltay)) |