Panel position and element position in constructor

What do you want to achieve?

Place panel with width of screen with top left align and 0,0 coordinates,
and place button on panel, align of button top left and position of button 0,0 coordinates

What have you tried so far?

I done this, but appearance on canvas is incorrect there some offset.
Generated code and appearance on target device is ok.

Screenshot or video


  • SquareLine Studio version: 1.0.5
  • Operating system: windows 10 x64
  • Target hardware: stm32f746 discovery with custom display

In the light and dark theme there are some padding on the panels. The 0;0 coordinate is offset by the padding. See here

You can disable the padding like this:

1 Like

Oh! Thanks! It was’n bug. I tryed all other things, but padding. Found workaround: set border width -13
May be it’s another bug (negative values in width field). Thanks again!

Why a workaround is needed? Setting padding=0 doesn’t solve the problem?

Setting padding=0 completly solved problem.
Workaround was before this answer on topic.

1 Like