Caves Travel Diving Graphics Mizar Texts Cuisine Lemkov Contact Map RSS Polski
Trybiks' Dive Texts HTML Fix for Highslide HTML Slides YAC Software
  Back

List

Charsets

Charts

DBExpress

Delphi

HTML

Intraweb

MSTest

PHP

Programming

R

Rhino Mocks

Software

Testing

UI Testing

VB.NET

VCL

WPF

Fix for Highslide HTML Slides
Highslide is a really nice component for displaying images on your web pages. It's, highly configurable, with sources (JavaScript), can also be used to display slideshows, including HTML content. Thus it is a very good fit for my caving and travel pages.

However, there's a small problem with rendering HTML slides, when the slide's contents don't fit in its window. This is how an HTML slide looks like (notice the scroll bar on the right):



To fix this, in the definition of contentLoaded function add at the end, just below this.show() (in line ca 1645 of highslide-full.js):
  if( this.isHtml )
    hs.setStyles( this.scrollingContent, { height: (this.y.size) + 'px' } );
Now, the slide works as expected:



HTH

Top

Comments
Alas!
No comments yet...

Top

Add a comment (fields with an asterisk are required)
Name / nick *
Mail (will remain hidden) *
Your website
Comment (no tags) *
Enter the text displayed below *
 

Top

Tags

HTML


Related pages

Clicking on links in JavaScript

Calculating Positions of HTML Elements

CSS for Scrollbars on Pages and in Frames

</form> ... <form>