首页 \ 问答 \ 在堆里面的背景图象在红宝石鞋子(Background image inside a stack in Ruby Shoes)

在堆里面的背景图象在红宝石鞋子(Background image inside a stack in Ruby Shoes)

我一直在尝试将背景图像设置为堆栈,但我无法让它工作,我做错了什么? 这是我的代码

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

结束

我试图避免滚动条出现,因为重新大小属性根本不起作用:/


I've been trying to set a background image to 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 the scroll bar to appear since the re-size property doesn't work at all :/


原文:https://stackoverflow.com/questions/27068216
更新时间:2022-04-11 11:04

最满意答案

我可以确认这是一个错误。

我提交了一个问题https://jira.springsource.org/browse/DATAMONGO-788并在github上添加了一个带有修复程序的pull请求。


I can confirm that this is a bug.

I filed an issue https://jira.springsource.org/browse/DATAMONGO-788 and added a pull request with a fix for it on github.

相关问答

更多