kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

HTMLViewer htShowVScroll strange behavior #298

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See attached Delphi 7 project code.

Once the program is launched, click the GO button. It will load the test.htm 
file.

Seeing how the contents of test.htm fits easily within the window, there really 
should be no need for the vertical scroll bar. Regardless of the need or not, 
one wouldn't expect the vertical scroll bar to do anything, seeing how it 
appears in a disabled state.  Yet, to my surprise, you can actually click on 
the down arrow button at the bottom of the vertical scroll bar and make the 
page scroll.  And when it does scroll, it goes bezerk!  The same thing happens 
if grab hold of the elevator button on the scroll bar and try moving it.  The 
contents of the THTMLViewer1 goes visually crazy.

OK, on to issue #2.

From within the IDE, try toggling the states of the htShowVScroll property for 
the THTMLViewer1 component.  Watch how the scroll bar fails to disappear when 
the property is htShowVScroll scroll bar is set to False.  The only way to make 
the scroll bar disappear within the IDE when the htShowVScroll property is 
False is to grab an edge of the THTMLViewer1 component and try to resize it.  
Only then does the scroll bar disappear.  Yet, if you look closely at the 
bottom edge/bottom corners of the THMLViewer1 component, you will see ghost 
slivers of what appear to be a horizontal scroll bar.

Original issue reported on code.google.com by xyz.123....@gmail.com on 25 Aug 2013 at 8:34

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for spotting this issue.

... and scrollbars tend to appear when you resize to smaller size.

Original comment by OrphanCat on 4 Oct 2013 at 10:26