# Problemas de posicionamiento con locales RTL después de actualizaciones recientes

**URL:** <https://meta.discourse.org/t/positioning-issues-with-rtl-locales-after-recent-updates/280220>\
**Category:** Bug\
**Created:** [26 Septiembre, 2023 21:26 UTC](https://meta.discourse.org/t/positioning-issues-with-rtl-locales-after-recent-updates/280220 "2023-09-26T21:26:25Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)\
**Post date:** [15 Diciembre, 2023 15:45 UTC](https://meta.discourse.org/t/positioning-issues-with-rtl-locales-after-recent-updates/280220/12 "2023-12-15T15:45:36Z")

</div>

Hola @inj3ct0r

Esto se ha corregido con este commit:

> <https://github.com/discourse/discourse/commit/eff6e4b405e3fb67126dfe5cf05a9fcaf90d5fab>
>
> Float-kit elements (menus/tooltips) are positioned where they should be by setti…ng an inline \`left\` property in JavaScript when they're rendered. For some reasons, we also set \`left: 0\` on float-kit elements here:
> 
> https://github.com/discourse/discourse/blob/25d9927785b07697132504fca77b8156600966ff/app/assets/stylesheets/common/float-kit/d-menu.scss#L11-L15
> 
> This property is overridden by the inline property that the library sets in JavaScript. However, in RTL mode, all of our scss files are flipped where everything left becomes right and vice versa. In this case, the \`left: 0\` property in the scss file above becomes \`right: 0\`.
> 
> This results in a conflict specific to RTL mode where both the \`left\` and \`right\` properties are defined on the same absolute-positioned element; the \`right\` property will always be set to 0 because it comes from the (flipped) scss file above, and the inline \`left\` property will be set to some px amount determined in JavaScript.
> 
> The \`right\` property will take precedence over the inline \`left\` property due to the page being right-to-left (source: https://developer.mozilla.org/en-US/docs/Web/CSS/right#description) and this causes float-kit elements to incorrectly always stick to the right.
> 
> This commit removes the \`left: 0\` property altogether for float-kit elements from our scss files. It's not clear from git history why the property was added, and removing it doesn't seem to cause any issues.
> 
> Meta topic: https://meta.discourse.org/t/positioning-issues-with-rtl-locales-after-recent-updates/280220?u=osama

---

_[View the full topic](https://meta.discourse.org/t/positioning-issues-with-rtl-locales-after-recent-updates/280220)._
