jeffreyhi1 / jscrollpane

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

scrollbar is indifferent to changes in zoom level #261

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. changing the zoom level:
        var zoom_level = 2;
    var myLayout = $("body").layout();
    var api = getScrollPaneAPI( 'center', myLayout.panes.center );
    $(api.getContentPane()).css('zoom',zoom_level);
    //ff/opera
    $(api.getContentPane()).css('-moz-transform', 'scale('+zoom_level+')');
    // need to adjust scrollbar to new zoom
    api.reinitialise();

What is the expected output? What do you see instead?

1. the size and bounderies of scrollbars should change,
but nothing happens, and so users cant access parts of the screen

What version of the jScrollPane are you using? On what browser? And operating 
system?

 * jScrollPane - v2.0.0beta11 - 2011-07-04
browser - chrome 17.0.963.46, ie8, ff9

Please provide a URL to a page displaying the problem.
none for now

Please provide any additional information below.

Original issue reported on code.google.com by nir...@gmail.com on 11 Feb 2012 at 2:28

GoogleCodeExporter commented 9 years ago
I also encountered this problem. The problem is that when applying the "Scale" 
function $.width() always returns the original value, but $.position() returns 
depending on the scale. The problem itself, I decided to finish the plugin. Now 
he is able to determine the current "scale" and divide it all the values 
​​obtained using $.position(). This solves the problem. Here's a link to 
the plugin bugfixed: 
https://www.dropbox.com/s/l0baous9fydfom5/jquery.jscrollpane.js%28fixed-by-%40sn
ake_345%29.zip

Sorry for my english. Wrote using Google Translate. =)

Original comment by g.snake...@gmail.com on 27 Dec 2013 at 1:27