remulasce / metroapp

Realtime arrival notification utility for LA Metro
2 stars 0 forks source link

Searchbox looks like shit #281

Closed nighelles closed 9 years ago

nighelles commented 9 years ago

It's just slapped together from like the first day when I needed it to work quickly.

Some of the supplied names are too long to be displayed nicely in one line.

Dropshadow doesn't work nicely with tab view with dynamic size.

Diveders don't rescale with the size of the view.

nighelles commented 9 years ago

Clicking at edge of screen outside search dropdown doesn't get out of search.

nighelles commented 9 years ago

Results from last time still there, good or bad? Either way it makes the dropshadow look whack.

nighelles commented 9 years ago

Update iOS code to get the recent searches or whatever android does.

Also, Route colors, but that's LA specific I think.

nighelles commented 9 years ago

Also, odd behavioral edge case because of weird autolayout thing in ios. Opening the search box by making it not hidden then decides to ignore the resizing code I have, so I dunno what's up with that.

Plus dropshadow doesn't match immediately after making it unhidden, which is totally whack. Why would layout work this way apple.

nighelles commented 9 years ago

Fixed obnoxious initial display thing by not displaying it until the logic has something to display.

nighelles commented 9 years ago

Dropshadow still seems to be height of last search when opening it for the first time.

nighelles commented 9 years ago

Fixed how clicking off search elements doesn't escape search state.

nighelles commented 9 years ago

Why does hiding and redisplaying the searchbox ruin everything, does it like UNLOAD stuff when it's hidden?

nighelles commented 9 years ago

Ok, so UITableView didn't want to behave like a proper view, so I put it inside a normal vanilla UIView, and now everything is being nice. I'll leave dynamic sizing of the search box for later, it's not really an iOS thing anyway, so eh...