cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

Text align in label

The label I have with multiple lines of text is not lining up correctly and for the life of me I cannot figure out what is causing the issue.  

I copied this formula from another app where it lines up correctly.  A solution would be appreciated 🙂

weatherFx.JPGtextAlign.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Skilled Sharer
Skilled Sharer

Re: Text align in label

The issue seemed to be with the indenting of the formula.  When I remove the formatting, the text aligns to the left.

Strangely, the issue does not persist when written the same way in another app.

New formatting:
If(
    IsEmpty(
        colLocation),
"Current temp: " &" 
"& " Forecast high: " &"
"& " Forcast low: " &"
"& " Conditions: " &"
"& "Wind speed: " ,
"Current temp: " & w2.responses.weather.current.temp &"
"& "Forecast high: " & w3.responses.daily.tempHi & w2.units.temperature &"
"& "Forcast low: " &  w3.responses.daily.tempLo & w2.units.temperature &"
"& "Conditions: " & w2.responses.weather.current.cap  &"
"& "Wind Speed: " & w2.responses.weather.current.windSpd & w2.units.speed
)

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Text align in label

Hi @KickingApps,

Can you share a bit more about your issue?

Can you show me the details of your original formula ?

Do you want to keep“Current tempfield in line with other fields ?

 

I made a test.  There is no issue on my side.

12.PNG

please check if there is a lack of space here.

13.PNG

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Skilled Sharer
Skilled Sharer

Re: Text align in label

@v-sheyu-msft Yes; I would like them to align to the left.  I have this exact formula in another app and am not experiencing this same issue.  Not sure why it is not lining up correctly here.

 

The formula is:

 

If(
    IsEmpty(
        colLocation),
            "Current temp: " &" 
            "& " Forecast high: " &"
            "& " Forcast low: " &"
            "& " Conditions: " &"
            "& "Wind speed: " ,
               "Current temp: " & w2.responses.weather.current.temp &"
            "& "Forecast high: " & w3.responses.daily.tempHi & w2.units.temperature &"
            "& "Forcast low: " &  w3.responses.daily.tempLo & w2.units.temperature &"
            "& "Conditions: " & w2.responses.weather.current.cap  &"
            "& "Wind Speed: " & w2.responses.weather.current.windSpd & w2.units.speed
)
Highlighted
Skilled Sharer
Skilled Sharer

Re: Text align in label

The issue seemed to be with the indenting of the formula.  When I remove the formatting, the text aligns to the left.

Strangely, the issue does not persist when written the same way in another app.

New formatting:
If(
    IsEmpty(
        colLocation),
"Current temp: " &" 
"& " Forecast high: " &"
"& " Forcast low: " &"
"& " Conditions: " &"
"& "Wind speed: " ,
"Current temp: " & w2.responses.weather.current.temp &"
"& "Forecast high: " & w3.responses.daily.tempHi & w2.units.temperature &"
"& "Forcast low: " &  w3.responses.daily.tempLo & w2.units.temperature &"
"& "Conditions: " & w2.responses.weather.current.cap  &"
"& "Wind Speed: " & w2.responses.weather.current.windSpd & w2.units.speed
)

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,719)