image inside a scrollview

Hi, i think i found a bug when adding an image inside a scrollview…

please, check this snippet out

http://webix.com/snippet/9a1e7d1d

Thanks and regards!

Hi, I cannot agree with you. It is not a bug, but Webix auto-sizing philosophy that you are dealing with.

Any component that doesn’t have a fixed size - and your scrollview doesn’t - will try to take the whole available space in the document body or in container where it is initialized.

Your scrollview took the entire page, so there’s no free space for the layout.

It can be solved if you

  • provide a height for the scrollview
  • initialize both of them in separate HTML containers
  • initialize them in a one Webix layout, in two rows. The height will be distributed evenly between these non-sized rows: http://webix.com/snippet/178eeb5b