On Jan 30, 2012, at 1:48 PM, Jason Grout wrote:
> On 1/29/12 9:41 AM, Ivan Andrus wrote:
>> On Jan 25, 2012, at 2:52 PM, kcrisman wrote:
>> 
>>> Ivan's iPhone app is cool.  However, when it links to sagenb or
>>> sagemath.org, it looks ... unhelpful.  Perhaps this is possible to fix
>>> easily - exchange below.  Is there someone for whom this would be only
>>> epsilon/two of effort to fix, who has epsilon/two time available?
>>> 
>>> - kcrisman
>>> 
>>> +++
>>>> Incidentally, the Sage website is totally sucky for iDevice,
>>>> apparently.  Screenshot attached :( though I don't think there is much
>>>> you can do about that.   Sagenb is similar :(
>>> 
>>> Yes indeed!  It would be very nice to fix this someday.  I think it
>>> would simply be a matter of add a css files specifically for mobile
>>> devices:
>>> 
>>> <link rel="stylesheet" href="./res/mobile.css" type="text/css"
>>> media="handheld" />
>>> 
>>> Also adding an iPhone icon would be nice:
>>> 
>>> <link rel=”apple-touch-icon” href=”http://www.icantinternet.org/
>>> icon.png”>
>>> 
>>> I guess I should just do it since it probably takes more effort to
>>> ignore it than to do it. :-)
>> 
>> Actually, it might be easier than that even, at least for the notebook.  
>> According to a stack overflow question [1] the problem with iPhone is that 
>> it tries to "scale your content for optimal viewing".  The solution is to add
>> 
>> <meta name="viewport" content="initial-scale=1.0">
>> 
>> which tells the (mobile) browser to use the actual width of the device.  
>> IMHO this makes it (much more) usable on the iPhone. There could probably be 
>> some tweaks to the css just for mobile devices, but the notebook actually 
>> scales really well layout-wise.  Some of the plots and such are cut off, but 
>> they fit pretty well when viewed in landscape.
> 
> 
> What about the changes listed here: 
> http://code.google.com/p/sagenb/issues/detail?id=24 ?
> 
> How is <meta name="viewport" content="width=device-width"> different than 
> what you did?

That's a good question.  I didn't think there was a difference, but reading 
Apple's documentation [1] it seems that device-width always means the same 
thing, even when in landscape mode, so that the content won't resize (it will 
zoom?) when you switch orientations.  If the scaling factor is 1 then it will 
resize so that the width of the page is the device-height when in landscape.  I 
haven't actually tested that though, nor do I know how that would affect 
non-Safari browsers.

On another note, do all of those tickets need to be moved over to github or 
will they be tracked on google?  In particular should I move this one over to 
github or should we (read someone else) try something automated like [2]?

-Ivan

[1] 
http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html

[2] https://github.com/dave0/gcode-issue-import

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to