#4402 closed defect (fixed)
[PATCH] Empty server name causes a visual error and empty port
Reported by: | Vladislav Belov | Owned by: | Vladislav Belov |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 22 |
Component: | Core engine | Keywords: | patch |
Cc: | Patch: |
Description (last modified by )
Attachments (5)
Change History (20)
by , 7 years ago
Attachment: | lobby_error.png added |
---|
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
Description: | modified (diff) |
---|
comment:3 by , 7 years ago
by , 7 years ago
Attachment: | 4402_lobby.patch added |
---|
Adds a feedback if the server name or port is incorrect
comment:4 by , 7 years ago
Keywords: | patch rfc added |
---|---|
Milestone: | Backlog → Work In Progress |
Owner: | set to |
Status: | new → assigned |
comment:5 by , 7 years ago
Summary: | Empty server name causes a visual error and empty port → [PATCH] Empty server name causes a visual error and empty port |
---|
comment:6 by , 7 years ago
I don't think that we should call the getValidPort
for each press
event, it'd be good to tell to user what's the problem with the port.
by , 7 years ago
Attachment: | 4402_lists.patch added |
---|
Fix the problem with empty items of clist/colist
comment:7 by , 7 years ago
The last patch is fix to prevent the same error for other places, the first patch is still relevant, because I don't think that we need empty names and unknown ports.
follow-up: 9 comment:8 by , 7 years ago
It would be good to merge the 65535 with the other occurance and use something like g_MinPort
and g_MaxPort
or g_ValidPorts = { "min": 1, "max": 65535 }
(to reduce magic numbers and allow changing the range without changing the code).
comment:9 by , 7 years ago
Replying to elexis:
It would be good to merge the 65535 with the other occurance and use something like
g_MinPort
andg_MaxPort
org_ValidPorts = { "min": 1, "max": 65535 }
(to reduce magic numbers and allow changing the range without changing the code).
Good point, should it be done in the patch above?
comment:10 by , 7 years ago
I think we need to add this fix first, and then replace all occurrences. It's easier to review.
comment:11 by , 7 years ago
Priority: | Must Have → Should Have |
---|
We will get a visual error if the item is empty, so we pass a non-visible char to save the height
Hack alert.
It seems better if we would use the max height of all text elements in all columns.
This way one would have a column with few pixel height only if its empty everywhere and have a bigger height if one of the columns has mulitple lines of text.
by , 7 years ago
Attachment: | fix_example.jpg added |
---|
comment:12 by , 7 years ago
Component: | UI & Simulation → Core engine |
---|---|
Keywords: | rfc removed |
Milestone: | Work In Progress → Alpha 22 |
We agreed to use the space character due to the following requirements: 1) Using a hardcoded min height property would not suit for different font sizes 2) Because content of the cells is clipped, the empty space can never be rendered into a neighboring cell 3) We use the maximum height of all cells, so this case is only needed if all cells have no content. We (as in Vladislav) want to not ignore this case and cover all cases, to prevent the user from confusing this empty line with a separator.
We agreed to improve the comment to // Minimum height of a space character of the current font size
to reflect these requirements.
Thanks for the patch! Those empty gamename games in the lobby were annoying and it indeed should be fixed in the C++ engine (too).
by , 7 years ago
Attachment: | 4402_lobby.2.patch added |
---|
The port of a game will be normalized only if the user press enter on this input. Which isn't so obvious for the user.