Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max height quest is too limiting in terms of how many digits I can enter #3000

Closed
waldyrious opened this issue Jun 27, 2021 · 10 comments
Closed
Assignees
Labels

Comments

@waldyrious
Copy link
Contributor

I've been adding max heights in Portuguese highways and in some cases I haven't been able to input the correct value, because the signed height is so large (more than 10 meters) that it requires more than 3 digits (or more than 4 characters, if you count the decimal point), and StreetComplete does not allow me to enter any more text.

For example, I recently had to edit the maxheight value of two ways from "11.5" to "11.49" (the actual value in the sign). Here's another instance of a maxheight value of "26.1", that I was only able to enter in abbreviated form using StreetComplete (unfortunately I can't recall if I had to round or just truncate a trailing zero, but I do recall that the sign did have four digits).

How to Reproduce

  • Try to add a max height containing more than three digits, e.g. "12.34".
  • StreetComplete won't allow you to enter any more text after "12.3".

Versions affected
v33.0-beta1

@matkoniecz
Copy link
Member

Note that with this change 12.34 will look like this:

screen

but it is so rare so I think that it would be OK?

@westnordost
Copy link
Member

No, that's not okay. Yes, EditText does not support autoSizeMinTextSize etc, but what should work is to put the edit text into a AutofitLayout, see for example housename layout.

@westnordost westnordost reopened this Jun 28, 2021
@matkoniecz matkoniecz self-assigned this Jun 28, 2021
@westnordost
Copy link
Member

I see you self-assigned this. When you fix it, please note that there is also a layout for Australia and Canada which would need to be adapted too

@waldyrious
Copy link
Contributor Author

Thanks for the quick fix! And wow, I hadn't realized this was issue #3000! What do I win? 😄

@smichel17
Copy link
Member

Probably a few extra ⭐'s from the MaxHeight quests you're now able to solve ;)

@waldyrious
Copy link
Contributor Author

waldyrious commented Sep 1, 2023

Hey @westnordost, I'm not sure if this is a regression but I am again unable to enter large height values (10m or more). This time it's not due to a limitation in the total number of characters, but due to only being able to input a single digit before the decimal point. Here are two notes I left due to being unable to enter the correct values in the app: 3865957, 3865958.

I will upload a screen recording of me hitting this limitation as soon as I'm able to.

@matkoniecz
Copy link
Member

I can confirm that it is happening, though I never seen maxheight so large - but if it is a problem, then opening a new issue may be a good idea (is such signed height limit popular in Australia?)

@waldyrious
Copy link
Contributor Author

but if it is a problem, then opening a new issue may be a good idea

I'd rather reuse this one since it allows the context to remain in the same place (as a end-user, the issue is exactly the same even though the underlying cause may be different).

(is such signed height limit popular in Australia?)

I don't know about Australia (I assume you're asking because the Australian version of the maxheight quest was changed in ee3a293; I believe app/src/main/res/layout/quest_maxheight_meter.xml, which was also changed in that commit, is the one that matters to me and most people).

That said, and to answer your question: Here in Portugal, it is quite common, at least in the North, to have extremely high "clearances" simply because of the geography of the terrain. Here's a Mapillary shot corresponding to my note 3865957, for example.

@mnalis
Copy link
Member

mnalis commented Sep 2, 2023

I'd rather reuse this one since it allows the context to remain in the same place (as a end-user, the issue is exactly the same even though the underlying cause may be different).

GitHub creates links between issues easily when you mention it (e.g. just specify Has same user-visible effect at issue #3000 in new ticket and GitHub will add a link to both automatically). The problem with commenting on closed tickets is (among other things) that they are quite easily overlooked and forgotten about, as they are not shown as something that needs fixing. Also, several smaller linked issues is much better than one big ticket with many comments from usability perspective.

@waldyrious
Copy link
Contributor Author

Right, good points. I'll go ahead and open an new issue, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants