We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Sailfish.silica.Slider documentation and/or implementation bug

asked 2013-12-26 22:14:24 +0200

rasjani gravatar image

I used a example code from https://sailfishos.org/sailfish-silica/qml-sailfishsilica-slider.html to create a slide and placed that into a Grid with 1 columns and it did not show properly.

A handle was shown at top of the screen.

In order to make the slider work, i had to give it a width property which is not mentioned in the documentation as a mandatory.

A) Either point out in the documentation that slider should always have width property defined or b) Fix the slider so that it gets default width from parent to fill all available space (if possible)

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
2

answered 2014-01-16 14:39:27 +0200

Joona Petrell gravatar image

Slider doesn't intentionally have width bindings or horizontal anchors to allow more freedom for positioning it. Some components like text editors, buttons and sliders are more flexible building blocks that you can stack vertically and horizontally on the application page. Other components like pulley menus and page headers are always meant to be used in certain way and they don't provide the flexibility of changing their geometry. For such components the width has been automatically set.

You're right this should be better documented. Thanks. :)

edit flag offensive delete publish link more

Comments

Indeed, thats why i was mentiong that two options and clause "if possible" in the b ..

rasjani ( 2014-01-16 16:00:49 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2013-12-26 22:14:24 +0200

Seen: 405 times

Last updated: Jan 16 '14