# Web export - chromium Text position issue \[FIXED\]

**URL:** <https://forums.solar2d.com/t/web-export-chromium-text-position-issue-fixed/356314>\
**Category:** Other\
**Created:** [February 4, 2024, 4:28pm UTC](https://forums.solar2d.com/t/web-export-chromium-text-position-issue-fixed/356314 "2024-02-04T16:28:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kao14](https://forums.solar2d.com/user_avatar/forums.solar2d.com/kao14/32/1339_2.png) [@Kao14](https://forums.solar2d.com/u/Kao14)\
**Post date:** [February 4, 2024, 4:28pm UTC](https://forums.solar2d.com/t/web-export-chromium-text-position-issue-fixed/356314/1 "2024-02-04T16:28:37Z")

</div>

Hello everyone!

Export on Web - there is a Text-issue on chrome based browser.  
(Safari works fine)

- the alignment of the Text is to Y not correct on the Browser.

Is there a hack to resolve the issue?  
Has anybody a idea how to fix it?

- Idea is to get the Browser-Type via Javascript (chromium based browsers)
- Set Textboxes Y-Pos by value x down…
- Maybe change Font

Here a Screen from the example Project:

 ![Text](https://forums.solar2d.com/uploads/default/original/2X/7/7bfda35362b390ead352eced4f5b7755b3102b5b.png)

Example Project - Export:  
[Testing-Web.zip](https://forums.solar2d.com/uploads/short-url/rNjuUlt9HbUWuQRgXWZycuiO2R3.zip) (70.4 KB)

We want to create a additional Quiz Web-App, here is the current status:

 ![app](https://forums.solar2d.com/uploads/default/original/2X/9/9ac841a5348076d1ffd412a830199bae2915e374.jpeg)

Thanks for Help.

---

<div class="post-metadata">

**Author:** ![Kao14](https://forums.solar2d.com/user_avatar/forums.solar2d.com/kao14/32/1339_2.png) [@Kao14](https://forums.solar2d.com/u/Kao14)\
**Post date:** [February 4, 2024, 5:44pm UTC](https://forums.solar2d.com/t/web-export-chromium-text-position-issue-fixed/356314/2 "2024-02-04T17:44:27Z")

</div>

I found a quick solution.  
If it is a browser then JavaScript is used to query whether it is a chrome browser.  
If applicable, the text fields are adjusted as follows:

```auto
myText.anchorY= 0.38

```

See a Quick-Fix here in the Example:  
[FIX-Web.zip](https://forums.solar2d.com/uploads/short-url/uviDQqxxsYzn1hq7oNuxxWc3fQD.zip) (71.0 KB)

Screenshot of the Fix-Example:

 ![fix](https://forums.solar2d.com/uploads/default/original/2X/2/2cb9c320e11cc40a1b010a916ac3668df7f67ae6.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://forums.solar2d.com/uploads/default/original/1X/1bf6a947166df24e92aaa3358558f4b82d7f3d5a.png) [@system](https://forums.solar2d.com/u/system)\
**Post date:** [August 2, 2024, 5:44pm UTC](https://forums.solar2d.com/t/web-export-chromium-text-position-issue-fixed/356314/3 "2024-08-02T17:44:46Z")

</div>

Closed on August 2, 2024, 5:44pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
