Microsoft KB Archive/183443

= PRB: Scroll Bars Appear on Active Desktop Item =

Article ID: 183443

Article Last Modified on 11/19/1999

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2

-



This article was previously published under Q183443



SYMPTOMS
Scroll bars appear on an Active Desktop Item even though the item has been sized exactly to fit a fixed size image, ActiveX control, or applet. The fixed size element never seems to occupy the entire space of the HTML body.



CAUSE
In HTML pages, spaces and carriage returns (CRs) are considered text characters, and text characters have descent -- space below the baseline. This causes a small section of the body to always appear underneath any fixed size elements in the page or desktop item.



RESOLUTION
Change the HEIGHT attribute of the Desktop ITEM in the CDF file to be a few pixels bigger.

-or-

Remove any spaces or carriage returns from the HTML file.



STATUS
This behavior is by design.



MORE INFORMATION
This problem can be observed in the following sample CDF file and corresponding HTML file for a desktop item: <?XML VERSION="1.0"?>   My Fixed Size Image Component      

<HTML> <BODY> <IMG SRC="xmple.jpg" width="300" height="200"> </BODY> </HTML> To resolve this problem, provide a little extra space in the Desktop Item's CDF file by changing the <HEIGHT> tag to the following: <HEIGHT VALUE="305" /> -or- Remove all white space from the HTML file like so: <HTML><BODY><IMG SRC="xmple.jpg" width="300" height="200"></BODY></HTML>

<div class="references_section">