jeffreyhi1 / jscrollpane

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

Vertical scroll reduce main width #260

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Vertical scroll reduce main width.

It's not good behavior in regular browser's scroll so the best behavior is when 
scroll is on top of content without reducing content width.
If anybody don't want scrollbar on top he need to add side padding for.

Change in function sizeVerticalScrollbar:

replace:
pane.width(paneWidth - scrollbarWidth - originalPaddingTotalWidth);
with:
pane.width(paneWidth - originalPaddingTotalWidth);

remove:
try {
if (verticalBar.position().left === 0) {
   //pane.css('margin-left', scrollbarWidth + 'px');
}
} catch (err) {}

OR set as configurable

Original issue reported on code.google.com by psyafter on 16 Jan 2012 at 5:01