Переглянути джерело

Merge pull request #399 from smbeiragh/master

fix rtl mode #233
Inuyaksa 10 роки тому
батько
коміт
185438a6e3
4 змінених файлів з 314 додано та 238 видалено
  1. 0 114
      demo/js/jquery.nicescroll.min.js
  2. 302 0
      demo/rtlmode/index.html
  3. 12 10
      jquery.nicescroll.js
  4. 0 114
      jquery.nicescroll.min.js

Різницю між файлами не показано, бо вона завелика
+ 0 - 114
demo/js/jquery.nicescroll.min.js


+ 302 - 0
demo/rtlmode/index.html

@@ -0,0 +1,302 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>jQuery NiceScroll Test Page</title>
+<style>
+    *{
+        -moz-box-sizing: border-box;
+        -webkit-box-sizing: border-box;
+        -ms-box-sizing: border-box;
+        -o-box-sizing: border-box;
+        box-sizing: border-box;
+    }
+    .main{
+        width:960px;
+        margin:0 auto;
+    }
+    .row{
+        margin:10px 0;
+    }
+    .row:after,
+    .row:before{
+        content:'';
+        display: table;
+    }
+    .row > div{
+        float: right;
+        width:460px;
+        height: 280px;
+        margin:0 10px;
+        border:solid 2px #37418b;
+        overflow: hidden;
+    }
+
+    .too-long{
+        width:600px;
+        min-height: 1px;
+    }
+
+    .row > div .wrap{
+        width:600px;
+    }
+
+    #rtl-native,
+    #rtl-test,
+    #rtl-test-nowrap{
+        direction: rtl;
+    }
+
+    #ltr-native,
+    #ltr-test,
+    #ltr-test-nowrap{
+        direction: ltr;
+    }
+
+    #ltr-native,
+    #rtl-native{
+        overflow: scroll;
+    }
+
+</style>
+<script src="../js/jquery.min.js"></script>
+<script src="../../jquery.nicescroll.min.js"></script>
+
+<script>
+  $(document).ready(function() {
+  
+	var nice = $("html").niceScroll();  // The document page (body)
+	
+
+	// because of some bugs in hw acceleration when using wrapper in rtl mode, disbale hw acceleration
+    $("#rtl-test").niceScroll('#rtl-test .wrap',{railalign:'left',rtlmode:true,hwacceleration:false});
+
+    $("#rtl-test-nowrap").niceScroll({railalign:'left',rtlmode:true});
+
+    $("#ltr-test").niceScroll('#ltr-test .wrap');
+
+    $("#ltr-test-nowrap").niceScroll();
+    
+  });
+</script>
+
+<meta name="viewport" content="user-scalable=no" />
+
+</head>
+
+<body style="direction:rtl;">
+    <div class="main">
+
+        <div class="row">
+
+            <div id="rtl-native">
+                <div class="too-long"></div>
+                <h2>RTL Browser default</h2>
+                THIS IS A SIMPLE SCROLLABLE DIV
+                <h2> Package Description </h2>
+                <p>Release Date: August 10, 2010</p>
+                <p>The <a title="http://www.openprinting.org/show_driver.cgi?driver=hpijs" rel="nofollow" href="http://www.openprinting.org/show_driver.cgi?driver=hpijs">HPIJS</a> driver is the free, <a title="http://hplipopensource.com/hplip-web/index.html" rel="nofollow" href="http://hplipopensource.com/hplip-web/index.html">open-source driver</a> issued by HP for their DeskJet and LaserJet printers. For most <a title="" href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs#Printers">supported printers</a>,   this driver produces output quality equivalent to the proprietary HP   drivers. In photo mode, with photo paper, the output quality is very   high, especially for the HP DeskJet 990C and later models, which   auto-detect the paper type in hardware. Photo printing is fully   supported in the newer 6- and 7-ink models.</p>
+                <p>A major advantage of using this driver over those supplied by HP is   the direct interface between HPIJS and the native CUPS spooler, which   allows printing from any printer over any available connection such as   USB, AppleTalk, TCP/IP (via LPD and IPP), HP JetDirect, and shared   windows printers via SAMBA. Additionally, this driver utilizes the   existing Mac OS X USB &quot;backend&quot; and thus does not install any software   that might interfere with standard USB operation.</p>
+                <p>Please note:</p>
+                <ul>
+                    <li>HP does not provide any support for HPLIP or HPIJS on the Mac OS X platform.</li>
+                    <li><a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">Several HP USB devices</a> may not print successfully over the standard Mac OS X USB &quot;backend&quot;. Please <a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">see this note</a> for more information.</li>
+                </ul>
+                <h2>Release Notes</h2>
+                <ul>
+                    <li>This release fixes a problem with the PPDs that caused many job   options such as page orientation, color/grayscale mode, duplex printing,   etc. to fail.</li>
+                    <li>HPIJS is HP's universal printer driver for most of their   non-PostScript printers. It comes as a part of HPLIP, HP Linux Imaging   and Printing.</li>
+                    <li>The PPDs for HP printers are now sourced from the HPLIP package rather than the OpenPrinting.org database.</li>
+                    <li>PPDs for printers from other manufacturers are provided by OpenPrinting.org.</li>
+                    <li>Some printers are only partially supported.  Printers such as<br />
+                        HP LaserJet 1022<br />
+                        HP LaserJet p1505n<br />
+                        HP LaserJet p12014<br />
+                        HP LaserJet p2035<br />
+                        require a proprietary plug-in for full support.  This package does not contain or support such plug-ins.</li>
+                </ul>
+                <p><a name="Printer_Set_Up_Instructions" ></a></p>
+                <h2> Printer Set Up Instructions </h2>
+                <p>To add a printer queue, Leopard (Mac OS X 10.5.x) users should use   the Print &amp; Fax from System Preferences. Click on the + (plus) icon   at the lower left. A new window will open. In that window, click the   Default Browser icon at the top left. Highlight your printer in the   section below. Use the &quot;Print Using&quot; pop-up menu near the bottom of the   window to select the correct PPD for your printer and click Add.</p>
+                <p>Tiger users should open the Printer Setup Utility and click on the   Add icon at the top of the Printer List window. A new window will open.   In that window, click the Default Browser icon at the top left.   Highlight your printer in the section below. Use the &quot;Print Using&quot;   pop-up menu near the bottom of the window to select the correct PPD for   your printer and click Add.</p>
+                <p>Jaguar (OS X 10.2.x) and Panther (OS X 10.3.x) users should open   Print Center (Jaguar) or Printer Setup Utility (Panther), hold down the   Option key, and click the Add Printer button in the Print Center   toolbar. Within the setup sheet, choose Advanced from the top popup   menu; then in the &quot;Device:&quot; popup menu select your printer by name (it   should be the last item in the menu list). Finally, select the correct   PPD from the model browser and click Add.</p>
+            </div>
+
+            <div id="ltr-native">
+                <div class="too-long"></div>
+                <h2>LTR Browser default</h2>
+                THIS IS A SIMPLE SCROLLABLE DIV
+                <h2> Package Description </h2>
+                <p>Release Date: August 10, 2010</p>
+                <p>The <a title="http://www.openprinting.org/show_driver.cgi?driver=hpijs" rel="nofollow" href="http://www.openprinting.org/show_driver.cgi?driver=hpijs">HPIJS</a> driver is the free, <a title="http://hplipopensource.com/hplip-web/index.html" rel="nofollow" href="http://hplipopensource.com/hplip-web/index.html">open-source driver</a> issued by HP for their DeskJet and LaserJet printers. For most <a title="" href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs#Printers">supported printers</a>,   this driver produces output quality equivalent to the proprietary HP   drivers. In photo mode, with photo paper, the output quality is very   high, especially for the HP DeskJet 990C and later models, which   auto-detect the paper type in hardware. Photo printing is fully   supported in the newer 6- and 7-ink models.</p>
+                <p>A major advantage of using this driver over those supplied by HP is   the direct interface between HPIJS and the native CUPS spooler, which   allows printing from any printer over any available connection such as   USB, AppleTalk, TCP/IP (via LPD and IPP), HP JetDirect, and shared   windows printers via SAMBA. Additionally, this driver utilizes the   existing Mac OS X USB &quot;backend&quot; and thus does not install any software   that might interfere with standard USB operation.</p>
+                <p>Please note:</p>
+                <ul>
+                    <li>HP does not provide any support for HPLIP or HPIJS on the Mac OS X platform.</li>
+                    <li><a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">Several HP USB devices</a> may not print successfully over the standard Mac OS X USB &quot;backend&quot;. Please <a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">see this note</a> for more information.</li>
+                </ul>
+                <h2>Release Notes</h2>
+                <ul>
+                    <li>This release fixes a problem with the PPDs that caused many job   options such as page orientation, color/grayscale mode, duplex printing,   etc. to fail.</li>
+                    <li>HPIJS is HP's universal printer driver for most of their   non-PostScript printers. It comes as a part of HPLIP, HP Linux Imaging   and Printing.</li>
+                    <li>The PPDs for HP printers are now sourced from the HPLIP package rather than the OpenPrinting.org database.</li>
+                    <li>PPDs for printers from other manufacturers are provided by OpenPrinting.org.</li>
+                    <li>Some printers are only partially supported.  Printers such as<br />
+                        HP LaserJet 1022<br />
+                        HP LaserJet p1505n<br />
+                        HP LaserJet p12014<br />
+                        HP LaserJet p2035<br />
+                        require a proprietary plug-in for full support.  This package does not contain or support such plug-ins.</li>
+                </ul>
+                <p><a></a></p>
+                <h2> Printer Set Up Instructions </h2>
+                <p>To add a printer queue, Leopard (Mac OS X 10.5.x) users should use   the Print &amp; Fax from System Preferences. Click on the + (plus) icon   at the lower left. A new window will open. In that window, click the   Default Browser icon at the top left. Highlight your printer in the   section below. Use the &quot;Print Using&quot; pop-up menu near the bottom of the   window to select the correct PPD for your printer and click Add.</p>
+                <p>Tiger users should open the Printer Setup Utility and click on the   Add icon at the top of the Printer List window. A new window will open.   In that window, click the Default Browser icon at the top left.   Highlight your printer in the section below. Use the &quot;Print Using&quot;   pop-up menu near the bottom of the window to select the correct PPD for   your printer and click Add.</p>
+                <p>Jaguar (OS X 10.2.x) and Panther (OS X 10.3.x) users should open   Print Center (Jaguar) or Printer Setup Utility (Panther), hold down the   Option key, and click the Add Printer button in the Print Center   toolbar. Within the setup sheet, choose Advanced from the top popup   menu; then in the &quot;Device:&quot; popup menu select your printer by name (it   should be the last item in the menu list). Finally, select the correct   PPD from the model browser and click Add.</p>
+            </div>
+
+        </div>
+        <div class="row">
+
+            <div id="rtl-test">
+                <div class="wrap">
+                    <h2>RTL with wrap</h2>
+                    THIS IS A SIMPLE SCROLLABLE DIV
+                    <h2> Package Description </h2>
+                    <p>Release Date: August 10, 2010</p>
+                    <p>The <a title="http://www.openprinting.org/show_driver.cgi?driver=hpijs" rel="nofollow" href="http://www.openprinting.org/show_driver.cgi?driver=hpijs">HPIJS</a> driver is the free, <a title="http://hplipopensource.com/hplip-web/index.html" rel="nofollow" href="http://hplipopensource.com/hplip-web/index.html">open-source driver</a> issued by HP for their DeskJet and LaserJet printers. For most <a title="" href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs#Printers">supported printers</a>,   this driver produces output quality equivalent to the proprietary HP   drivers. In photo mode, with photo paper, the output quality is very   high, especially for the HP DeskJet 990C and later models, which   auto-detect the paper type in hardware. Photo printing is fully   supported in the newer 6- and 7-ink models.</p>
+                    <p>A major advantage of using this driver over those supplied by HP is   the direct interface between HPIJS and the native CUPS spooler, which   allows printing from any printer over any available connection such as   USB, AppleTalk, TCP/IP (via LPD and IPP), HP JetDirect, and shared   windows printers via SAMBA. Additionally, this driver utilizes the   existing Mac OS X USB &quot;backend&quot; and thus does not install any software   that might interfere with standard USB operation.</p>
+                    <p>Please note:</p>
+                    <ul>
+                        <li>HP does not provide any support for HPLIP or HPIJS on the Mac OS X platform.</li>
+                        <li><a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">Several HP USB devices</a> may not print successfully over the standard Mac OS X USB &quot;backend&quot;. Please <a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">see this note</a> for more information.</li>
+                    </ul>
+                    <h2>Release Notes</h2>
+                    <ul>
+                        <li>This release fixes a problem with the PPDs that caused many job   options such as page orientation, color/grayscale mode, duplex printing,   etc. to fail.</li>
+                        <li>HPIJS is HP's universal printer driver for most of their   non-PostScript printers. It comes as a part of HPLIP, HP Linux Imaging   and Printing.</li>
+                        <li>The PPDs for HP printers are now sourced from the HPLIP package rather than the OpenPrinting.org database.</li>
+                        <li>PPDs for printers from other manufacturers are provided by OpenPrinting.org.</li>
+                        <li>Some printers are only partially supported.  Printers such as<br />
+                            HP LaserJet 1022<br />
+                            HP LaserJet p1505n<br />
+                            HP LaserJet p12014<br />
+                            HP LaserJet p2035<br />
+                            require a proprietary plug-in for full support.  This package does not contain or support such plug-ins.</li>
+                    </ul>
+                    <p><a></a></p>
+                    <h2> Printer Set Up Instructions </h2>
+                    <p>To add a printer queue, Leopard (Mac OS X 10.5.x) users should use   the Print &amp; Fax from System Preferences. Click on the + (plus) icon   at the lower left. A new window will open. In that window, click the   Default Browser icon at the top left. Highlight your printer in the   section below. Use the &quot;Print Using&quot; pop-up menu near the bottom of the   window to select the correct PPD for your printer and click Add.</p>
+                    <p>Tiger users should open the Printer Setup Utility and click on the   Add icon at the top of the Printer List window. A new window will open.   In that window, click the Default Browser icon at the top left.   Highlight your printer in the section below. Use the &quot;Print Using&quot;   pop-up menu near the bottom of the window to select the correct PPD for   your printer and click Add.</p>
+                    <p>Jaguar (OS X 10.2.x) and Panther (OS X 10.3.x) users should open   Print Center (Jaguar) or Printer Setup Utility (Panther), hold down the   Option key, and click the Add Printer button in the Print Center   toolbar. Within the setup sheet, choose Advanced from the top popup   menu; then in the &quot;Device:&quot; popup menu select your printer by name (it   should be the last item in the menu list). Finally, select the correct   PPD from the model browser and click Add.</p>
+                </div>
+            </div>
+
+            <div id="ltr-test">
+                <div class="wrap">
+                    <h2>LTR with wrap</h2>
+                    THIS IS A SIMPLE SCROLLABLE DIV
+                    <h2> Package Description </h2>
+                    <p>Release Date: August 10, 2010</p>
+                    <p>The <a title="http://www.openprinting.org/show_driver.cgi?driver=hpijs" rel="nofollow" href="http://www.openprinting.org/show_driver.cgi?driver=hpijs">HPIJS</a> driver is the free, <a title="http://hplipopensource.com/hplip-web/index.html" rel="nofollow" href="http://hplipopensource.com/hplip-web/index.html">open-source driver</a> issued by HP for their DeskJet and LaserJet printers. For most <a title="" href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs#Printers">supported printers</a>,   this driver produces output quality equivalent to the proprietary HP   drivers. In photo mode, with photo paper, the output quality is very   high, especially for the HP DeskJet 990C and later models, which   auto-detect the paper type in hardware. Photo printing is fully   supported in the newer 6- and 7-ink models.</p>
+                    <p>A major advantage of using this driver over those supplied by HP is   the direct interface between HPIJS and the native CUPS spooler, which   allows printing from any printer over any available connection such as   USB, AppleTalk, TCP/IP (via LPD and IPP), HP JetDirect, and shared   windows printers via SAMBA. Additionally, this driver utilizes the   existing Mac OS X USB &quot;backend&quot; and thus does not install any software   that might interfere with standard USB operation.</p>
+                    <p>Please note:</p>
+                    <ul>
+                        <li>HP does not provide any support for HPLIP or HPIJS on the Mac OS X platform.</li>
+                        <li><a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">Several HP USB devices</a> may not print successfully over the standard Mac OS X USB &quot;backend&quot;. Please <a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">see this note</a> for more information.</li>
+                    </ul>
+                    <h2>Release Notes</h2>
+                    <ul>
+                        <li>This release fixes a problem with the PPDs that caused many job   options such as page orientation, color/grayscale mode, duplex printing,   etc. to fail.</li>
+                        <li>HPIJS is HP's universal printer driver for most of their   non-PostScript printers. It comes as a part of HPLIP, HP Linux Imaging   and Printing.</li>
+                        <li>The PPDs for HP printers are now sourced from the HPLIP package rather than the OpenPrinting.org database.</li>
+                        <li>PPDs for printers from other manufacturers are provided by OpenPrinting.org.</li>
+                        <li>Some printers are only partially supported.  Printers such as<br />
+                            HP LaserJet 1022<br />
+                            HP LaserJet p1505n<br />
+                            HP LaserJet p12014<br />
+                            HP LaserJet p2035<br />
+                            require a proprietary plug-in for full support.  This package does not contain or support such plug-ins.</li>
+                    </ul>
+                    <p><a ></a></p>
+                    <h2> Printer Set Up Instructions </h2>
+                    <p>To add a printer queue, Leopard (Mac OS X 10.5.x) users should use   the Print &amp; Fax from System Preferences. Click on the + (plus) icon   at the lower left. A new window will open. In that window, click the   Default Browser icon at the top left. Highlight your printer in the   section below. Use the &quot;Print Using&quot; pop-up menu near the bottom of the   window to select the correct PPD for your printer and click Add.</p>
+                    <p>Tiger users should open the Printer Setup Utility and click on the   Add icon at the top of the Printer List window. A new window will open.   In that window, click the Default Browser icon at the top left.   Highlight your printer in the section below. Use the &quot;Print Using&quot;   pop-up menu near the bottom of the window to select the correct PPD for   your printer and click Add.</p>
+                    <p>Jaguar (OS X 10.2.x) and Panther (OS X 10.3.x) users should open   Print Center (Jaguar) or Printer Setup Utility (Panther), hold down the   Option key, and click the Add Printer button in the Print Center   toolbar. Within the setup sheet, choose Advanced from the top popup   menu; then in the &quot;Device:&quot; popup menu select your printer by name (it   should be the last item in the menu list). Finally, select the correct   PPD from the model browser and click Add.</p>
+                </div>
+            </div>
+
+        </div>
+        <div class="row">
+
+            <div id="rtl-test-nowrap">
+                <div class="too-long"></div>
+                <h2>RTL without wrap</h2>
+                THIS IS A SIMPLE SCROLLABLE DIV
+                <h2> Package Description </h2>
+                <p>Release Date: August 10, 2010</p>
+                <p>The <a title="http://www.openprinting.org/show_driver.cgi?driver=hpijs" rel="nofollow" href="http://www.openprinting.org/show_driver.cgi?driver=hpijs">HPIJS</a> driver is the free, <a title="http://hplipopensource.com/hplip-web/index.html" rel="nofollow" href="http://hplipopensource.com/hplip-web/index.html">open-source driver</a> issued by HP for their DeskJet and LaserJet printers. For most <a title="" href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs#Printers">supported printers</a>,   this driver produces output quality equivalent to the proprietary HP   drivers. In photo mode, with photo paper, the output quality is very   high, especially for the HP DeskJet 990C and later models, which   auto-detect the paper type in hardware. Photo printing is fully   supported in the newer 6- and 7-ink models.</p>
+                <p>A major advantage of using this driver over those supplied by HP is   the direct interface between HPIJS and the native CUPS spooler, which   allows printing from any printer over any available connection such as   USB, AppleTalk, TCP/IP (via LPD and IPP), HP JetDirect, and shared   windows printers via SAMBA. Additionally, this driver utilizes the   existing Mac OS X USB &quot;backend&quot; and thus does not install any software   that might interfere with standard USB operation.</p>
+                <p>Please note:</p>
+                <ul>
+                    <li>HP does not provide any support for HPLIP or HPIJS on the Mac OS X platform.</li>
+                    <li><a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">Several HP USB devices</a> may not print successfully over the standard Mac OS X USB &quot;backend&quot;. Please <a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">see this note</a> for more information.</li>
+                </ul>
+                <h2>Release Notes</h2>
+                <ul>
+                    <li>This release fixes a problem with the PPDs that caused many job   options such as page orientation, color/grayscale mode, duplex printing,   etc. to fail.</li>
+                    <li>HPIJS is HP's universal printer driver for most of their   non-PostScript printers. It comes as a part of HPLIP, HP Linux Imaging   and Printing.</li>
+                    <li>The PPDs for HP printers are now sourced from the HPLIP package rather than the OpenPrinting.org database.</li>
+                    <li>PPDs for printers from other manufacturers are provided by OpenPrinting.org.</li>
+                    <li>Some printers are only partially supported.  Printers such as<br />
+                        HP LaserJet 1022<br />
+                        HP LaserJet p1505n<br />
+                        HP LaserJet p12014<br />
+                        HP LaserJet p2035<br />
+                        require a proprietary plug-in for full support.  This package does not contain or support such plug-ins.</li>
+                </ul>
+                <p><a ></a></p>
+                <h2> Printer Set Up Instructions </h2>
+                <p>To add a printer queue, Leopard (Mac OS X 10.5.x) users should use   the Print &amp; Fax from System Preferences. Click on the + (plus) icon   at the lower left. A new window will open. In that window, click the   Default Browser icon at the top left. Highlight your printer in the   section below. Use the &quot;Print Using&quot; pop-up menu near the bottom of the   window to select the correct PPD for your printer and click Add.</p>
+                <p>Tiger users should open the Printer Setup Utility and click on the   Add icon at the top of the Printer List window. A new window will open.   In that window, click the Default Browser icon at the top left.   Highlight your printer in the section below. Use the &quot;Print Using&quot;   pop-up menu near the bottom of the window to select the correct PPD for   your printer and click Add.</p>
+                <p>Jaguar (OS X 10.2.x) and Panther (OS X 10.3.x) users should open   Print Center (Jaguar) or Printer Setup Utility (Panther), hold down the   Option key, and click the Add Printer button in the Print Center   toolbar. Within the setup sheet, choose Advanced from the top popup   menu; then in the &quot;Device:&quot; popup menu select your printer by name (it   should be the last item in the menu list). Finally, select the correct   PPD from the model browser and click Add.</p>
+            </div>
+
+            <div id="ltr-test-nowrap" >
+                <div class="too-long"></div>
+                <h2>LTR without wrap</h2>
+                THIS IS A SIMPLE SCROLLABLE DIV
+                <h2> Package Description </h2>
+                <p>Release Date: August 10, 2010</p>
+                <p>The <a title="http://www.openprinting.org/show_driver.cgi?driver=hpijs" rel="nofollow" href="http://www.openprinting.org/show_driver.cgi?driver=hpijs">HPIJS</a> driver is the free, <a title="http://hplipopensource.com/hplip-web/index.html" rel="nofollow" href="http://hplipopensource.com/hplip-web/index.html">open-source driver</a> issued by HP for their DeskJet and LaserJet printers. For most <a title="" href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs#Printers">supported printers</a>,   this driver produces output quality equivalent to the proprietary HP   drivers. In photo mode, with photo paper, the output quality is very   high, especially for the HP DeskJet 990C and later models, which   auto-detect the paper type in hardware. Photo printing is fully   supported in the newer 6- and 7-ink models.</p>
+                <p>A major advantage of using this driver over those supplied by HP is   the direct interface between HPIJS and the native CUPS spooler, which   allows printing from any printer over any available connection such as   USB, AppleTalk, TCP/IP (via LPD and IPP), HP JetDirect, and shared   windows printers via SAMBA. Additionally, this driver utilizes the   existing Mac OS X USB &quot;backend&quot; and thus does not install any software   that might interfere with standard USB operation.</p>
+                <p>Please note:</p>
+                <ul>
+                    <li>HP does not provide any support for HPLIP or HPIJS on the Mac OS X platform.</li>
+                    <li><a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">Several HP USB devices</a> may not print successfully over the standard Mac OS X USB &quot;backend&quot;. Please <a href="http://www.linuxfoundation.org/en/OpenPrinting/MacOSX/hpijs-USB">see this note</a> for more information.</li>
+                </ul>
+                <h2>Release Notes</h2>
+                <ul>
+                    <li>This release fixes a problem with the PPDs that caused many job   options such as page orientation, color/grayscale mode, duplex printing,   etc. to fail.</li>
+                    <li>HPIJS is HP's universal printer driver for most of their   non-PostScript printers. It comes as a part of HPLIP, HP Linux Imaging   and Printing.</li>
+                    <li>The PPDs for HP printers are now sourced from the HPLIP package rather than the OpenPrinting.org database.</li>
+                    <li>PPDs for printers from other manufacturers are provided by OpenPrinting.org.</li>
+                    <li>Some printers are only partially supported.  Printers such as<br />
+                        HP LaserJet 1022<br />
+                        HP LaserJet p1505n<br />
+                        HP LaserJet p12014<br />
+                        HP LaserJet p2035<br />
+                        require a proprietary plug-in for full support.  This package does not contain or support such plug-ins.</li>
+                </ul>
+                <p><a></a></p>
+                <h2> Printer Set Up Instructions </h2>
+                <p>To add a printer queue, Leopard (Mac OS X 10.5.x) users should use   the Print &amp; Fax from System Preferences. Click on the + (plus) icon   at the lower left. A new window will open. In that window, click the   Default Browser icon at the top left. Highlight your printer in the   section below. Use the &quot;Print Using&quot; pop-up menu near the bottom of the   window to select the correct PPD for your printer and click Add.</p>
+                <p>Tiger users should open the Printer Setup Utility and click on the   Add icon at the top of the Printer List window. A new window will open.   In that window, click the Default Browser icon at the top left.   Highlight your printer in the section below. Use the &quot;Print Using&quot;   pop-up menu near the bottom of the window to select the correct PPD for   your printer and click Add.</p>
+                <p>Jaguar (OS X 10.2.x) and Panther (OS X 10.3.x) users should open   Print Center (Jaguar) or Printer Setup Utility (Panther), hold down the   Option key, and click the Add Printer button in the Print Center   toolbar. Within the setup sheet, choose Advanced from the top popup   menu; then in the &quot;Device:&quot; popup menu select your printer by name (it   should be the last item in the menu list). Finally, select the correct   PPD from the model browser and click Add.</p>
+            </div>
+
+        </div>
+
+    </div>
+</body>
+</html>

+ 12 - 10
jquery.nicescroll.js

@@ -281,7 +281,7 @@
     this.cursorheight = 20;
     this.scrollvaluemax = 0;
     
-		this.isrtlmode = false; //(this.opt.rtlmode=="auto") ? (this.win.css("direction")=="rtl") : (this.opt.rtlmode===true);
+		this.isrtlmode = (this.opt.rtlmode=="auto") ? ((this.win[0]==window?this.body:this.win).css("direction")=="rtl") : (this.opt.rtlmode===true);
 //    this.checkrtlmode = false;
     
     this.scrollrunning = false;
@@ -330,7 +330,7 @@
     this.lastdeltay = 0;
     
     this.detected = getBrowserDetection(); 
-    
+
     var cap = $.extend({},this.detected);
  
     this.canhwscroll = (cap.hastransform&&self.opt.hwacceleration);
@@ -513,7 +513,7 @@
         this.notifyScrollEvent = function(el,add) {}; //NOPE
       }
       
-			var cxscrollleft = -1; //(this.isrtlmode) ? 1 : -1;
+			var cxscrollleft = (this.isrtlmode) ? 1 : -1;
 			
       if (cap.hastranslate3d&&self.opt.enabletranslate3d) {
         this.setScrollTop = function(val,silent) {
@@ -547,14 +547,16 @@
       this.getScrollTop = function() {
         return self.docscroll.scrollTop();
       };
-      this.setScrollTop = function(val) {        
+      this.setScrollTop = function(val) {
         return self.docscroll.scrollTop(val);
       };
       this.getScrollLeft = function() {
+        if(self.detected.ismozilla&&self.isrtlmode)
+            return Math.abs(self.docscroll.scrollLeft());
         return self.docscroll.scrollLeft();
       };
       this.setScrollLeft = function(val) {
-        return self.docscroll.scrollLeft(val);
+        return self.docscroll.scrollLeft((self.detected.ismozilla&&self.isrtlmode)?-val:val);
       };
     }
     
@@ -789,7 +791,7 @@
 
           var cursor = $(document.createElement('div'));
           cursor.css({
-            position:"relative",top:0,height:self.opt.cursorwidth,width:"0px",
+            position:"absolute",top:0,height:self.opt.cursorwidth,width:"0px",
             'background-color':self.opt.cursorcolor,
             border:self.opt.cursorborder,
             'background-clip':'padding-box',
@@ -1172,8 +1174,8 @@
                 }
                   
                 if (self.railh&&self.railh.scrollable) {
-                  var nx = self.rail.drag.sl-mx;; //(self.isrtlmode) ? mx-self.rail.drag.sl : self.rail.drag.sl-mx;
-									
+                  var nx = (self.isrtlmode) ? mx-self.rail.drag.sl : self.rail.drag.sl-mx;
+
                   if (self.ishwscroll&&self.opt.bouncescroll) {                  
                     if (nx<0) {
                       nx = Math.round(nx/2);
@@ -1945,12 +1947,12 @@
         self.scrollvaluemaxw = self.railh.width-self.cursorwidth-self.cursorh.wborder;
       }
       
-/*			
+/*
       if (self.checkrtlmode&&self.railh) {
         self.checkrtlmode = false;
         if (self.opt.rtlmode&&self.scroll.x==0) self.setScrollLeft(self.page.maxw);
       }
-*/			
+*/
       
       if (!self.ispage) self.updateScrollBar(self.view);
       

Різницю між файлами не показано, бо вона завелика
+ 0 - 114
jquery.nicescroll.min.js


Деякі файли не було показано, через те що забагато файлів було змінено