shoes / shoes3

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

Horizontal bar not visible when image/SVG larger than window #163

Open IanTrudel opened 8 years ago

IanTrudel commented 8 years ago

image

Shoes.app(width: 256, height: 256) {
  image("#{DIR}/static/splash.png")
}
ccoupe commented 8 years ago

This would require horizontal scrolling for all things since it's implemented in canvas and it would change how Shoes lays out widgets. It runs counter to the Shoes design of a fixed with, infinite height app windows. In short, a complete rewrite of the layout engine and modifications to all widgets. One hell of a lot of work.

I know you think I'm exaggerating or I'm being argumentative because I'm stubborn. Feel free to study the C code and fix it. The only question for me is whether to assign this issue to enhancement or wish list. 3.3. is not likely.

IanTrudel commented 8 years ago

You may be absolutely right but it is not an enhancement, it is an actual bug. Removing 3.3.0 tag is fine in the light of your feedback. There is no urgency on this one at the moment. So we can keep it, document it, look at it later on. No problem.

IanTrudel commented 7 years ago

(Small update) This bug is still present in Shoes 3.3.2.

ccoupe commented 7 years ago

No, it is not a bug - I don't remember Shoes ever putting horizontal scroll bars on stacks or flows. The vertical scroll bar is for the slot, not the image.

passenger94 commented 7 years ago

This is by design, an assumed choice by the creator himself, Manual is crystal clear on this !!!

IanTrudel commented 7 years ago

@passanger94 would you please point exactly in the manual where it is crystal clear? This would make a whole lot difference as to what we should do with this issue.

ccoupe commented 7 years ago

It doesn't require manual citation (a fallible gotcha) . Slots don't get horizontal scrollbars. They just don't. Never did. How would flow work if there was a horizontal scroll for each flow? Edit_box (a native) might or might not put up horizontal scroll bar but Shoes doesn't know about that.

ccoupe commented 7 years ago

Furthermore , svg resizes to fit the slot. Try it. You can also scale a png to fit into your predetermined size.

Shoes.app(width: 256, height: 256) {
  image "#{DIR}/static/splash.png", width: 256, height: 256
}

tiny-walkabout

passenger94 commented 7 years ago

See beginning of the Slot section. There's some other info elsewhere, i can't find it atm, maybe Nobody Knows Shoes or the Wiki ... This is a central design of Shoes, (think about the Flow's behavior @ccoupe is talking about)