Monday, August 20th, 2007

Wot no magnifying glass?

Category: iPhone, Tip

We have heard this a couple of times now, so thought that we should post it as a quick tip.

Why does the magnifying glass not show in my app?

It turns out that if you set user-scalable=0 in the meta tag, the magnifying glass doesn’t show for input type=”text” fields. It does still work in textarea’s.

  1. <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

Posted by Dion Almaer at 12:19 am

2.8 rating from 34 votes


Comments feed TrackBack URI

Well, I have no idea what you’re talking about…

Comment by Mike — August 20, 2007

I’m with Mike on this one. What the hell is this about?

Comment by Marcel — August 20, 2007

The post is tagged iPhone, so I would guess that this is about an iphone feature.

Comment by Hans Duedal — August 20, 2007

I think he is talking about the 2008 presidential election.

Comment by Jordan — August 20, 2007

“I think he is talking about the 2008 presidential election.”
Well, I’m with Jordan ^^

Comment by flaviosil — August 20, 2007

When typing in an input or textarea field on an iPhone the user can press and hold their finger over a spot in the text to display a magnifying glass to better allow you to select the insertion point for making corrections. This tip just goes to help trouble shoot why your app may be failing to show the helpful UI element to iPhone users.

Comment by Sean Foushee — August 20, 2007

Could have said that then. Confused me!

Comment by Matt Oakes — August 20, 2007

Leave a comment

You must be logged in to post a comment.