ProMotion icon indicating copy to clipboard operation
ProMotion copied to clipboard

UI bug when using searchable and indexable together

Open cbetta opened this issue 10 years ago • 8 comments
trafficstars

I've been trying to use searchable and indexable together and it seems to have a UI bug. The index pushes the cells, and the search box, to the left.

ios simulator screen shot 6 mar 2015 18 26 46

cbetta avatar Mar 06 '15 17:03 cbetta

I'm pretty sure this is a consequence of hard-coding the 320 width. TODO: assign @cbetta to fix this. ;)

jamonholmgren avatar Mar 06 '15 22:03 jamonholmgren

:+1: This has been needing to be fixed for a while now. Should be an easy fix.

markrickert avatar Mar 06 '15 22:03 markrickert

Lol, will see if I can dig at it. Anyone got a clue how to hotfix this for now?

cbetta avatar Mar 06 '15 23:03 cbetta

From what I can tell I should be able to do something like:

searchable frame: CGRectMake(0, 0, 350, 44)

to change the frame size, am I right?

cbetta avatar Mar 06 '15 23:03 cbetta

easiest way to check is to clone this repos, then change the gemfile in your project to:

gem "ProMotion", path: "../ProMotion"

then run bundle in your project and any changes you make to the local cloned repos will be compiled and built into your app.

markrickert avatar Mar 06 '15 23:03 markrickert

@markrickert so been trying to fix this but rather lost. Pretty new to all this so not too sure if I'm digging at this right. Regardless of the value of the frame (I clone the repo locally and am using that as the gem in my project) the index just pushes all cells and the searchbar to the left.

cbetta avatar Mar 07 '15 09:03 cbetta

To reclarify: it's pushing both the cells AND the search box.

cbetta avatar Mar 07 '15 09:03 cbetta

@cbetta I'll look at this next week!

jamonholmgren avatar Mar 11 '15 22:03 jamonholmgren