cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
KickingApps
Level 8

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 Smiley Happy

weatherFx.JPGtextAlign.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
KickingApps
Level 8

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
)
3 REPLIES 3
Community Support Team
Community Support Team

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.
KickingApps
Level 8

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
)
KickingApps
Level 8

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
)

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 4 members 4,107 guests
Recent signins:
Please welcome our newest community members: