# Textinput not respecting textalignment properly

**URL:** <https://forums.fusetools.com/t/textinput-not-respecting-textalignment-properly/2086>\
**Category:** Bug Reports\
**Created:** [July 11, 2017, 9:01am UTC](https://forums.fusetools.com/t/textinput-not-respecting-textalignment-properly/2086 "2017-07-11T09:01:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krister](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@krister](https://forums.fusetools.com/u/krister)\
**Post date:** [July 11, 2017, 9:01am UTC](https://forums.fusetools.com/t/textinput-not-respecting-textalignment-properly/2086/1 "2017-07-11T09:01:31Z")

</div>

**Fuse version:** 1.1.0

**Operating System:** Windows 10

**Steps to reproduce:**

- Create new empty project and insert one TextInput-field.
- Add the TextAlignment property with value “Center”.
- Add PlaceholderText property with anything as value.

**Expected results:**

- Text should be centered at all times.

**Results Desktop-client (Windows 10)**

- Placeholder-text is centered
- Cursor is Left-aligned until you start typing. Then it gets Centered.
- Typed text stays centered.

**Results Android (Preview and Buid)**

- Placeholder-text is left-aligned
- When tapping the field and ready to type, the placeholder-text becomes centered.
- While Typing the test is still centered.
- When unfocusing the field, the typed text returns to be left-aligned.

**Clean repo used**

Testrepo.unoproj

```auto
{
	"Packages": [
		"Fuse",
		"FuseJS"
	],
	"Includes": [
		"*"
	]
}

```

MainView.ux

```auto
<App>
    <StackPanel>
        <StatusBarBackground/>
        <TextInput TextAlignment="Center" PlaceholderText="This Should be centered." />
    </StackPanel>
</App>

```

**Screenshot**

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/Rq1k27d5I0ae-image-1499763623107.png)

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [July 11, 2017, 9:22am UTC](https://forums.fusetools.com/t/textinput-not-respecting-textalignment-properly/2086/2 "2017-07-11T09:22:45Z")

</div>

Thanks for reporting! A ticket has been raised and you can follow it [here](https://github.com/fusetools/fuselibs-public/issues/197).
