fatfreecrm / ransack_ui

Framework for building a search UI with Ransack
MIT License
18 stars 19 forks source link

Search value is only 2px wide when 'is any' predicate is used #5

Open steveyken opened 10 years ago

steveyken commented 10 years ago

This is a bit random. When FFCRM is run in engine mode this bug occurs.

Steps to reproduce:

The following happens

image

Note: this doesn't happen when FFCRM is run standalone

ndbroadbent commented 10 years ago

Sorry I haven't got to this yet, will try to get to it this week

On Sat, Dec 14, 2013 at 12:27 AM, Steve Kenworthy notifications@github.comwrote:

This is a bit random. When FFCRM is run in engine mode this bug occurs.

Steps to reproduce:

  • Download https://github.com/steveyken/ffcrm_app2 (a new rails app setup for FFCRM)
  • Setup FFCRM rake db:create db:migrate db:demo:load ffcrm:setup:adminetc etc
  • Run the server
  • Goto opportunities tab -> advanced search
  • Select 'stage'
  • Select 'is any'

The following happens

[image: image]https://f.cloud.github.com/assets/149198/1748062/6c7c7a46-6499-11e3-915a-458b4cdc5056.png

Note: this doesn't happen when FFCRM is run standalone

— Reply to this email directly or view it on GitHubhttps://github.com/ndbroadbent/ransack_ui/issues/5 .

steveyken commented 10 years ago

Cheers! I haven't been able to figure it out yet. Can't think what different between engine and application would affect this particular thing.

steveyken commented 10 years ago

Did you find any leads on this the other night?

ndbroadbent commented 10 years ago

Hey, nope I couldnt figure out why it was happening, but there are some workarounds we could do. Maybe just detect if the input width is returned as 1, and set a sane default in that case

On Thu, Dec 19, 2013 at 3:38 PM, Steve Kenworthy notifications@github.comwrote:

Did you find any leads on this the other night?

— Reply to this email directly or view it on GitHubhttps://github.com/ndbroadbent/ransack_ui/issues/5#issuecomment-30977395 .

steveyken commented 10 years ago

commitmed e2dd227602b9e34f4cc5197a4be69e87c33f443e which is an interim fix.