Hello,
I'm trying to get my head arround how Kivy is handling the layout of the widget. Especially when I use the kv language.
Here is an example:
FloatLayout:
Button:
text: "x"
size_hint: .5, .5
pos: 20, 20
Button:
text: "y"
size_hint: .5, .5
pos: 40, 40
Widget:
size_hint: .5, .5
pos: 60, 60
canvas:
Color:
rgb: 1, 0, 0
Rectangle:
size: self.size
Widget:
size_hint: .5, .5
pos: 80, 80
canvas:
Color:
rgb: 0, 1, 0
Rectangle:
size: self.size
As you can imagine I'm expecting to get the same kind of result regarding both the Button object and the Widget object. But here's the render of such test:
![Capture d’écran 2018-12-07 à 19.51.10.png](https://groups.google.com/group/kivy-users/attach/7bd4cdbf8f796/Capture%20d%E2%80%99e%CC%81cran%202018-12-07%20a%CC%80%2019.51.10.png?part=0.1&view=1)
The pos attribute is only working for the button object.
Can you explain the logic behind that and maybe a solution to mix and match widget inside a layout?
Regards;