shoes / shoes3

a tiny graphical app kit for ruby
http://walkabout.mvmanila.com
Other
181 stars 19 forks source link

Scrollbar is not moved when maximizing window #349

Closed IanTrudel closed 5 years ago

IanTrudel commented 7 years ago

image

IanTrudel commented 7 years ago

May be related to #38.

ccoupe commented 7 years ago

Not related to #38. Many problems, all platforms, some different.

ccoupe commented 6 years ago

This is being a nasty bug to track down but you wouldn't think so.. There are only two places where the scrollbar is. positioned in gtk.c .

  1. shoes_slot_init which creates the scrollbar and moves it to a hidden place. There are comments (@passenger94?) that suggest just such a problem and gtk_alt_fixed may be the problem.
  2. shoes_canvas_gtk_size() is the callback/signal-handler. This gets called at setup, when the slot expands because the user drags the corner or when the slot fills up (stack scroll: true).

I'm debugging the last one - when the slot fill up and needs a scrollbar. That has a another problem - scrollbar height is wrong, but it also doesn't move to the far right of the slot.

ccoupe commented 6 years ago

Update: When you've stared at the code and instrumented it and nothing makes sense then remember - uses a start block. That fixed my problem. I can get @BackOrder problem sometimes. And sometimes the scrollbar is drawn to the left of window by 5 pixels of so. Hmm,. there was another problem with backgrounds appearing.

ccoupe commented 5 years ago

Fixed in Shoes 3.3.7