shoes / shoes-deprecated

Former repo for Shoes... see README for up to date locations!
http://shoesrb.com/
Other
1.15k stars 167 forks source link

background default size #42

Open fela opened 14 years ago

fela commented 14 years ago

the size of the background is when used on slots with a scrollbar, see the following example (run it and scroll down)

Shoes.app do
  stack :height => 300, :scroll => true do
    background yellow
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
  end
end
ashbb commented 14 years ago

Umm... what platform are you using?
I run the following snippet on Windows 7 with Policeman 0.r1503.
The size of background seems correct (= 300pix)...

Shoes.app do
  stack :height => 300, :margin_right=> gutter, :scroll => true do
    background yellow
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
    para "abcd"
  end
  line 0, 300, 300, 300
end
fela commented 14 years ago

What I mean is: I would have expected the background to cover the whole slot, whose content is bigger than 300 pixels. The same way it increases in size when the slot with no scrollbar gets bigger because of paras getting added

ashbb commented 14 years ago

Oh, now I confirmed. This is a bug. But for Linux, not Windows. I can't confirm with Mac, though...

steveklabnik commented 13 years ago

It acts strange on the Mac, too.