Labels in IE

By , October 20, 2009 1:09 am

Recently I develop one project which created by one of the plugin.

This project having pre configured css for the pages. Application is run well on all borwsers except IE.

In IE, labels are not displayed. Labels are displayed When I highlight on that by mouse.

This is a very strange problem for me because text is displayed sometime and sometime not. Even sometime some of the labels are shown where some labels are  not on a same page.

Finally I found that all browsers have own default font size. Like firefox having 14px and IE having 16px.

I felt that there are some padding issues with font styles in IE. So I applied the below patch for IE browsers..


body {font: 13px/1.5 Arial, Verdana, sans-serif;}

Still I don’t know what means this but it works for me. Now in IE browser labels are shown consist.

auto_complete problem in ruby 1.9

By , October 8, 2009 10:57 pm

Recently I upgrade my rails version from 2.3.2  to 2.3.4 and ruby version from 1.8 to 1.9 .

By changing version of ruby,  I was facing problem in auto complete functionality.

To solve the issue , I applied below patch in lib/autocomeplete_macro_helper.rb file

def auto_complete_result(entries, field, phrase = nil)
return unless entries
items = entries.map { |entry| content_tag("li", phrase ? highlight(entry[field], phrase) : h(entry[field])) }
content_tag("ul", items.uniq.join)
end

I changed content_tag (“ul”, items.uniq) to content_tag(“ul”,items.uniq.join)

Panorama Theme by Themocracy