cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KickingApps
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

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
v-sheyu-msft
Community Support
Community Support

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.

@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
)

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,964)