Revlet size different for some users

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cborn
Posts: 66
Joined: Fri Dec 15, 2006 11:35 pm

Revlet size different for some users

Post by cborn » Thu Oct 28, 2010 2:46 pm

I have developed a plug-in revlet that is embedded in to our course management system. For MOST people MOST of the time, the revlet behaves as designed.

Full Revlet Display
full_revlet.png
full_revlet.png (9.2 KiB) Viewed 7292 times
However, I've witnessed on a few machines that the revlet does not fully display for some. The revlet is 340 x 115 (px) and that size is set in the Object embed code for the browser. (see attached file). But on some a machines, it's cut off so that only the very top of the submit button is shown and a good 50-80 pixels is cut off on the right side.

Cropped Revlet Display
cut_revlet.png
cut_revlet.png (7.47 KiB) Viewed 7292 times
The weirdest thing is I can't figure out what is different about the client machines that exhibit this behavior. The revlet is most stable on Macs in Firefox. But I've seen this behavior on Macs in Firefox! OS and browser versions can be identical to other machines that do not exhibit the behavior.

Is Rev sensitive to the resolution or aspect in any way? The Mac I was looking at yesterday was a new MacBook using 1280 x 800, and changing the resolution didn't make a difference. Does anyone have any ideas why this would happen? :?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Revlet size different for some users

Post by Mark » Mon Nov 01, 2010 10:22 am

cborn,

Do you have a link?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

cborn
Posts: 66
Joined: Fri Dec 15, 2006 11:35 pm

Re: Revlet size different for some users

Post by cborn » Thu Jan 20, 2011 11:27 pm

Sorry, just getting back to this problem again. The actual stack lives inside a password-protected course management system.

I've just recently saw it on another computer, too, although it wasn't cropped as badly. I checked the screen res/aspect ratio, OS and browser versions, they all matched those on my own computer! I'm starting to wonder if there is a particular plugin that might conflict with the size display of the revlet somehow.

Jules
Posts: 8
Joined: Sat Jan 22, 2011 8:45 pm

Re: Revlet size different for some users

Post by Jules » Fri Feb 04, 2011 1:53 am

I have just got the same problem. My application was working yesterday and now the screen is cropped in firefox at the bottom. My application has also stopped working in the browser but works fine in windows. Don't really know where to look for the problem since it works fine in windows. Is there a way to debug in the revlet?

jiml
Posts: 339
Joined: Sat Dec 09, 2006 1:27 am

Re: Revlet size different for some users

Post by jiml » Fri Feb 04, 2011 2:16 am

This problem bit me too.
It can be caused (on the mac at least) by the user 'pinching' the zoom level of the browser page.
Try it yourself!
1 - load a page with a revlet.
2 - Now zoom in by piching your trackpad.
3 - viola! the revlet is cropped.

I believe this is actually expected behavior.

Jim Lambert

cborn
Posts: 66
Joined: Fri Dec 15, 2006 11:35 pm

Re: Revlet size different for some users

Post by cborn » Tue Mar 01, 2011 9:43 pm

So I have three reports of this on Macs, and now I've just seen it on a Windows desktop computer, too.

How do we make it stop? In at least one case that I've seen, the user is plugged into a desktop monitor, keyboard, mouse and is not using the trackpad at all. So there must be some other cause. Window ratio? Is there something we can change in the revlet to not allow it to 'resize'? My stack properties inspector has resizing unchecked, but is there something else?

jiml
Posts: 339
Joined: Sat Dec 09, 2006 1:27 am

Re: Revlet size different for some users

Post by jiml » Tue Mar 01, 2011 11:38 pm

Try to add a style="max-width: 100%;min-width: 100%;" to the object tag, like so:

<object classid="CLSID:B2EC94AF-4716-4300-824A-3314BF23664A" width=1031 height=450 style="max-width: 100%;min-width: 100%;">

Post Reply