question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Span supporting alignment

See original GitHub issue

Please, provide the details below:

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Yes

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Android – confirmed

Please provide the following version numbers that your issue occurs with:

Lasted CLI, runtime, core-modules

Please tell us how to recreate the issue in as much detail as possible.

<Button row="3" col="1" class="action-button" tap="{{ $parents['ListView'].onReplyTap }}">
            <FormattedString>
                  <Span text="&#xE0CB; " class="mdi"></Span>
                   <Span text="{{ reply_count }}"></Span>
            </FormattedString>
</Button>

Given the above layout, using spans for positioning a font icon next to the text inside a button. It would be nice to have a way to shift the alignment of the span. The font icon is slightly offset vertically compared to the string text. I’ve looked through the span source and seen the limited list of styling props available. If this isn’t simply achievable, maybe an explanation on the limitation so the documentation can be improved in this area as well. I’m sure I can’t be the only one who’s tried this approach and noticed it 😄 so if there are limitations at least having it documented for new NS devs would be nice 👍 look forward to hearing more info. Thanks as always 🤗

Below is screen demonstrating the offset: offsetspan

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:15
  • Comments:41 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Eonfuzzcommented, Oct 8, 2019

Any progress on this FR?

2reactions
EddyVerbruggencommented, Aug 9, 2018

@hshristov Thanks, don’t worry about it.

@kamok You can prefix the second Span with spaces (<Span [text]="' '" + route.text"></Span>), or use fi. srtyle="margin-right: 10 to the first Span.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AlignmentSpan.Standard - Android Developers
Align left to right text opposite to the layout direction. A text written in a right to left ... Return a special type...
Read more >
align-content - CSS: Cascading Style Sheets - MDN Web Docs
The CSS align-content property sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's ...
Read more >
Features and Capabilities - Scaled Agile Framework
Feature estimation supports forecasting value delivery, applying WSJF prioritization, and sizing epics by splitting them into features and ...
Read more >
Aligning Product Strategy with Customer Feature Requests
We've all been on customer calls where we're asked for a feature that just does not align with our product strategy.
Read more >
Initiatives vs. Epics vs. Features | Aha! software
Epics contain features that span multiple releases and help deliver ... Initiatives: Areas of investment that support overall business and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found