Skip to content
This repository was archived by the owner on Aug 22, 2020. It is now read-only.

Fixed a case in which the title was being truncated#20

Merged
fython merged 1 commit into
fython:masterfrom
alexkok:master
Apr 9, 2018
Merged

Fixed a case in which the title was being truncated#20
fython merged 1 commit into
fython:masterfrom
alexkok:master

Conversation

@alexkok
Copy link
Copy Markdown
Contributor

@alexkok alexkok commented Apr 8, 2018

While using this library, I encountered an issue in which the step titles were being truncated when using multi-line texts.
This is due to the top margin of the title getting a negative margin. Resulting in the truncated title.

The current issues did not describe this, only in issue #15 it is mentioned (which is closed).
Instead of reporting it, I have fixed it in the library itself.

It can easily be tested in the demo project. Just set the step titles to a long title resulting in a multiline title. Then going to step 2 and back to step 1, the title of the first step is truncated.
This fix just prevents the negative margin to prevent the truncated title.

For reference, check out the following screenshots when applying this fix in the demo project: (enabled showing layout-bounds)

Earlier (with bug):
1-stepper-bug

And when going to step 2 and back:
1-stepper-bug2

Now (with fix applied):
2-stepper-fixed

When using multiple lines in the title, the text is being truncated at
the top due to the top margin being set to a negative margin.
Now only adding the margin when the value is not negative.
@fython fython merged commit 25d7ead into fython:master Apr 9, 2018
@fython
Copy link
Copy Markdown
Owner

fython commented Apr 9, 2018

Thanks for contributions.

@alexkok
Copy link
Copy Markdown
Contributor Author

alexkok commented Apr 9, 2018

Great! Thanks.
Can you also create a release of this version? Then I can use it directly in another project

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants