Page MenuHomePhabricator

Visual updates to the Places feature - Search Bar overflow
Closed, ResolvedPublic

Description

Split from T163836

Finding 2

There are some issues with the search string and icon overflowing on some devices (one iPhone 7 and an iPhone 5c)

iPhone 5c 10.3.1iPhone 7 10.3.1
Screen Shot 2017-04-25 at 2.09.48 PM.png (576×332 px, 83 KB)
Screen Shot 2017-04-25 at 2.10.50 PM.png (578×334 px, 157 KB)

Acceptance Criteria

For now, just shorten the prompt text to "Search"

Event Timeline

This appears to be an Apple bug, and there isn't a straightforward fix...

@AMroczkowski is there any autolayout logging when this happens?

@JoeWalsh I didn't notice any but it's trivial to reproduce. It happens on any UISearchBar

@AMroczkowski would it be possible to still have the icon and string left aligned?

@cmadeo Not unless we re-implement it as a text field. UISearchBar does not allow you to left-align text

@AMroczkowski if we populated the search field with the active search filter (eg. 'top read' or 'saved articles' ) would that allow us to keep the text and icon left aligned?

@cmadeo yes.

Apple wants UISearchBar has centered placeholder text, and left-aligned input text

If you'd rather just re-implement custom it's not very difficult, and we already have a custom search box elsewhere

@AMroczkowski if it isn't too much work or trouble (and won't cause input issues) then that would be preferable!

JMinor moved this task from Needs Triage to Bug Backlog on the Wikipedia-iOS-App-Backlog board.
JMinor removed a project: Epic.
ABorbaWMF subscribed.

Tested on an iPhone 7+ with iOS 10.3 and an iPhone 5s with iOS 10.2 on Beta App 5.5.0 (1134)

Fixed