Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Images Displayed Wrong Size

2 posts in General Discussion Last posting was on 2008-10-01 16:55:45.0Z
Jasvinder Bahra Posted on 2008-07-31 09:25:52.0Z
Sender: 13c9.48917ce0.1804289383@sybase.com
From: Jasvinder Bahra
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Images Displayed Wrong Size
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48918520.14bd.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 31 Jul 2008 02:25:52 -0700
X-Trace: forums-1-dub 1217496352 10.22.241.41 (31 Jul 2008 02:25:52 -0700)
X-Original-Trace: 31 Jul 2008 02:25:52 -0700, 10.22.241.41
Lines: 27
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1227
Article PK: 9320

I have a GIF image that is not being displayed correctly on
the M-Business Client. It loads up correctly in Pant Shop
Pro, and in Firefox so the image does not seem to corrupted
in any way.

However, when viewing it in the M-Business Client, the image
looks 'squashed' - that is the width of the image is smaller
than it should be.

I use the following HTML...

&lt;img id=&quot;id_nav_support_fullbar&quot;
src=&quot;images/tab_utilssupport_fullbar_active.gif&quot;
border=&quot;0&quot; style=&quot;display: none;&quot;/&gt;

JavaScript is used to display the image as a result of some
business logic.

If I explicitly set the height and width of the image by
specifying attributes in the image tag, the image does
display correctly, but I would like to avoid doing so as
server-side logic may change the image that is sent down to
the M-Business Client - and consequently have a different
size.

Anyone have any idea as to why this occurs? Or how to work
around the problem?


Jeff Albion (Sybase iAnywhere) Posted on 2008-10-01 16:55:45.0Z
From: "Jeff Albion (Sybase iAnywhere)" <firstname.lastname@ianywhere.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Images Displayed Wrong Size
References: <48918520.14bd.1681692777@sybase.com>
In-Reply-To: <48918520.14bd.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48e3ab91$1@forums-1-dub>
Date: 1 Oct 2008 09:55:45 -0700
X-Trace: forums-1-dub 1222880145 10.22.241.152 (1 Oct 2008 09:55:45 -0700)
X-Original-Trace: 1 Oct 2008 09:55:45 -0700, vip152.sybase.com
Lines: 48
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1253
Article PK: 9334

I believe by default, M-Business will try to size any images to the
screen where an explicit size and width was not specified. This might
also be a case for technical support to investigate. Do you have a
reproducible (code sample + image) for us to take a look at? Have you
tried manipulating the image's DOM height and width reference attributes
using JavaScript? Is there any way of standardizing the image output
size from the server?

Regards,

Jasvinder Bahra wrote:
> I have a GIF image that is not being displayed correctly on
> the M-Business Client. It loads up correctly in Pant Shop
> Pro, and in Firefox so the image does not seem to corrupted
> in any way.
>
> However, when viewing it in the M-Business Client, the image
> looks 'squashed' - that is the width of the image is smaller
> than it should be.
>
> I use the following HTML...
>
> &lt;img id=&quot;id_nav_support_fullbar&quot;
> src=&quot;images/tab_utilssupport_fullbar_active.gif&quot;
> border=&quot;0&quot; style=&quot;display: none;&quot;/&gt;
>
> JavaScript is used to display the image as a result of some
> business logic.
>
> If I explicitly set the height and width of the image by
> specifying attributes in the image tag, the image does
> display correctly, but I would like to avoid doing so as
> server-side logic may change the image that is sent down to
> the M-Business Client - and consequently have a different
> size.
>
> Anyone have any idea as to why this occurs? Or how to work
> around the problem?

--
Jeff Albion, SQL Anywhere Engineering
Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/library/sql-anywhere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summary.do?baseprod=144&client=ianywhere&timeframe=0