Article View: borland.public.jbuilder.java.api
Article #2890ScrollPane guru required
From: Charles Johnson
Date: Mon, 02 Aug 1999 00:00
Date: Mon, 02 Aug 1999 00:00
23 lines
1818 bytes
1818 bytes
I have compiled an applet in JBuilder2 using the AWT components in JDK 1.1.6. In descending order of containment, I have a Frame, a ScrollPane, a Panel, and several Choices. My code at one point resizes the Frame so that the viewport of the ScrollPane is just wide enough to cause the horizontal scroll bar to disappear. The problem is, when running in the JBuilder2 appletviewer, everything works OK. However, when loaded over the web in IE5, the ScrollPane viewport is not made quite large enough to cause the horizontal scroll bar to disappear. I noticed that the ScrollPane's insets were not returned in IE5 so I was able to kludgily get the insets by subtracting the VScrollbarWidth from the ScrollPane's width. When however, I had the ScrollPane viewport sizing itself correctly, I then had an object at the bottom of the containment hierarchy sizing itself at greater than its preferred size. I think somebody may know the answer to this from a general principle according to the above description, hence the fact that I have not posted any code. Would that person please step forward?! Charles Johnson
Technical Details
Message-ID:
<7o4np0$6jd$3@news6.svr.pol.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,95ec17ba7535f28a,start X-Google-Attributes: gid1089d0,public From: "Charles Johnson" <cehjohnson@ANTISPAMsigma-software.freeserve.co.uk> Subject: ScrollPane guru required Date: 1999/08/02 Message-ID: <7o4np0$6jd$3@news6.svr.pol.co.uk> X-Deja-AN: 508042271 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@theplanet.net X-Trace: news6.svr.pol.co.uk 933618272 6765 62.136.194.209 (2 Aug 1999 18:24:32 GMT) Organization: Customer of Planet Online X-MSMail-Priority: Normal NNTP-Posting-Date: 2 Aug 1999 18:24:32 GMT Newsgroups: borland.public.jbuilder.java.api