Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

background default size #42

Open
fela opened this issue Aug 13, 2010 · 4 comments
Open

background default size #42

fela opened this issue Aug 13, 2010 · 4 comments
Labels

Comments

@fela
Copy link

fela commented Aug 13, 2010

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
Copy link
Member

ashbb commented Aug 14, 2010

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
Copy link
Author

fela commented Aug 14, 2010

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
Copy link
Member

ashbb commented Aug 14, 2010

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

@steveklabnik
Copy link
Member

It acts strange on the Mac, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants