Think of a header with logo on the left side and a user avatar on the right side. I want the logo and avatar keep it’s position to 30px from the left/right edge - always.
So I’m trying to have a widget always (regardless of window width) positioned 30px from the left edge of the window. I thought this could be possible with:
- create a dynamic panel
- set dynamic panel as 100% wide
- place a widget inside the panel
- position the widget 30px from the left edge of the panel
- set widget’s constraints to left.
In that scenario, I would expect the widget stay always positioned 30px from the left edge of the panel eventhough the panel would stretch to 100% window width. Sadly, that’s not the case.
Is there another approach to achieve what I’m trying to achieve?
Important note: ideally, the solution should allows for making it (the set of widgets) a component. Again, think of a header with logo on the left and avatar on the right, reused on more pages.
Thnx