Background image inside a stack in Ruby Shoes

I'm trying to put a background image on the stack, but I can't get it to work, am I doing something wrong? Here's my code

Shoes.app(:width => 550,
      :height => 450) do

#Main container so I don't have to deal with scroll
stack(:width  => 550,
      :height => 450,
      :scroll => false) do
    background(image("img/intro_bg.jpg"))
end

      

end

I'm trying to avoid showing the scrollbar as the re-size property doesn't work at all: /

+3


source to share


1 answer


Assuming it img/intro_bg.jpg

exists, change

background(image("img/intro_bg.jpg"))

      



to

background('img/intro_bg.jpg')

      

+1


source







All Articles