# Center-relative widget transform

**URL:** <http://forum.squareline.io/t/center-relative-widget-transform/4033>\
**Category:** Feature requests\
**Created:** [November 25, 2024, 7:24pm UTC](http://forum.squareline.io/t/center-relative-widget-transform/4033 "2024-11-25T19:24:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard](http://forum.squareline.io/user_avatar/forum.squareline.io/richard/32/1129_2.png) [@Richard](http://forum.squareline.io/u/Richard)\
**Post date:** [November 25, 2024, 7:24pm UTC](http://forum.squareline.io/t/center-relative-widget-transform/4033/1 "2024-11-25T19:24:21Z")

</div>

### What do you want to achieve?

I’d like to be able to easily rotate a widget around the center of a widget, while using a flex-flow to place the widgets on the screen.

Under Inspector → Style Settings → Style(Main) → Transform → Pivot X / Pivot Y, these seem to be specified in coordinates relative to the top-left of the widget. But sometimes I want to flip the widget 180 degrees about its center. And due to flex-flows, the widget may not always be the same size, so the pixel-counts used for Pivot-X/Y aren’t helpful.

I think what would help is something similar to Inspector-\>Container-\>Align but Pivot-Align, so we could choose Top/Mid/Bottom vs Left/Mid/Right for the pivot.

### Do you see alternative options and workaround to achieve it?

The best workaround we have is disabling flex-flows, but then we cannot guarantee good text layout when considering things like translations.

### Mention some use cases

For a two-player board-game, a device might want to have some widgets facing each player.

---

<div class="post-metadata">

**Author:** ![SquareLine\_Support](http://forum.squareline.io/user_avatar/forum.squareline.io/squareline_support/32/47_2.png) [@SquareLine\_Support](http://forum.squareline.io/u/SquareLine_Support)\
**Post date:** [November 29, 2024, 3:40pm UTC](http://forum.squareline.io/t/center-relative-widget-transform/4033/2 "2024-11-29T15:40:09Z")

</div>

Hi, Thanks for the feedback, this would be a really useful feature, we’ll think about how we could implement it in the future
